CMU-17313Q / NodeBB

GNU General Public License v3.0
0 stars 50 forks source link

Code coverage increase, and manual code trigger - src/flags.js #87

Open mrahmed2026 opened 2 months ago

mrahmed2026 commented 2 months ago

I was able to increase the overall code coverage of this file.

83.26% Statements 408/490 67.34% Branches 165/245 82.69% Functions 86/104 83.87% Lines 390/465

85.3% Statements 418/490 71.02% Branches 174/245 84.61% Functions 88/104 86.02% Lines 400/465

This was indicated in the npm run test locally, and on the code coverage tool, and shown to Professor Eduardo as well.

Further, I addded a console log to the flag.js file and it was shown after i triggered the code, by flagging a blog post or annoucement.

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10719743949

Details


Files with Coverage Reduction New Missed Lines %
src/meta/errors.js 1 76.74%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 10550029021: 0.04%
Covered Lines: 22333
Relevant Lines: 25583

💛 - Coveralls
sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud