Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored code in src/webserver.js #6

Open
wants to merge 8 commits into
base: f24
Choose a base branch
from

Conversation

roma2023
Copy link

Description

Refactored code in function listen and reduced its Cognitive Complexity from 19 to 6.

Issues Resolved

Resolved #5

@coveralls
Copy link

coveralls commented Aug 29, 2024

Pull Request Test Coverage Report for Build 10719289930

Details

  • 16 of 29 (55.17%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.002%) to 82.669%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/webserver.js 16 29 55.17%
Totals Coverage Status
Change from base Build 10550029021: -0.002%
Covered Lines: 22329
Relevant Lines: 25590

💛 - Coveralls

Copy link

sonarcloud bot commented Sep 5, 2024

@roma2023
Copy link
Author

roma2023 commented Sep 5, 2024

My file is responsible for running webserver and testing different server functionalities. All the newly introduced lines of code after refactoring are covered by tests. I was not able to write testcases for further coverage on the original code as this would include creating stubs, and mocks, which is beyond my capabilities given the time constraint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactoring code in src/webserver.js
2 participants