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

chore(test): improve test coverage #1205

Merged
merged 6 commits into from Mar 11, 2022
Merged

chore(test): improve test coverage #1205

merged 6 commits into from Mar 11, 2022

Conversation

lamweili
Copy link
Contributor

@lamweili lamweili commented Mar 10, 2022

Improve Test Coverage (Part 3 of 3)

Part Version/PR File % Stmts % Branch % Funcs % Lines Uncovered Line #s
log4js@6.4.2 All files 97.67 96.24 97.42 97.67
1/3 #1200 All files 98.62 97.91 98.51 98.56
2/3 #1204 All files 99.48 98.67 100 99.46
3/3 #1205 All files 100 100 100 100

appenders/connect-logger.js - Line 279 - return;
@lamweili lamweili added the tests Test issues or coverage label Mar 10, 2022
@lamweili lamweili added this to the 6.4.3 milestone Mar 10, 2022
appenders/file.js     - Line 65 - return;
appenders/dateFile.js - Line 45 - return;
lib/logger.js - Line 25 - catch (err) {
lib/logger.js - Line 26 -   // will never get error unless nodejs has breaking changes to Error
lib/logger.js - Line 27 -   console.error('log4js.logger - defaultParseCallStack error', err); // eslint-disable-line no-console
lib/logger.js - Line 28 - }
lib/logger.js - Line 29 - return null;
used a simpler compare function to avoid branch coverage issues in fileSync.js
removed redundant default value for EOL to avoid branch coverage issues in fileSync.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Test issues or coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant