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 #1204

Merged
merged 5 commits into from
Mar 9, 2022
Merged

chore(test): improve test coverage #1204

merged 5 commits into from
Mar 9, 2022

Conversation

lamweili
Copy link
Contributor

@lamweili lamweili commented Mar 8, 2022

Improve Test Coverage (Part 2 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/fileSync.js - Line 11 - return;
appenders/dateFile.js - Line 13 - console.error('log4js.dateFileAppender - Writing to file %s, error happened ', filename, err); // eslint-disable-line
@lamweili lamweili added the tests Test issues or coverage label Mar 8, 2022
@lamweili lamweili added this to the 6.4.3 milestone Mar 8, 2022
@lamweili lamweili marked this pull request as draft March 8, 2022 18:16
appenders/tcp.js - Line 37 - debug('drain event received, emptying buffer');
appenders/tcp.js - Line 38 - canWrite = true;
appenders/tcp.js - Line 39 - emptyBuffer();
appenders/tcp.js - Line 43 - debug('connection error', e);
appenders/tcp.js - Line 44 - canWrite = false;
appenders/tcp.js - Line 45 - emptyBuffer();
appenders/tcp.js - Line 54 - write(loggingEvent);
appenders/file.js     - Line 56 - process.emit("log4js:pause", false);
appenders/dateFile.js - Line 16 - process.emit("log4js:pause", false);
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