Skip to content

chore(test): improve test coverage#1205

Merged
lamweili merged 6 commits intomasterfrom
update-test
Mar 11, 2022
Merged

chore(test): improve test coverage#1205
lamweili merged 6 commits intomasterfrom
update-test

Conversation

@lamweili
Copy link
Copy Markdown
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
[email protected] 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.

1 participant