Skip to content

chore(test): improve test coverage#1200

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

chore(test): improve test coverage#1200
lamweili merged 11 commits intomasterfrom
update-test

Conversation

@lamweili
Copy link
Copy Markdown
Contributor

@lamweili lamweili commented Mar 4, 2022

Improve Test Coverage (Part 1 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

@lamweili lamweili added the tests Test issues or coverage label Mar 4, 2022
@lamweili lamweili added this to the 6.4.3 milestone Mar 4, 2022
lamweili added 4 commits March 6, 2022 21:47
appenders/multiprocess.js - Line 121 - debug('connection error', e);
appenders/multiprocess.js - Line 122 - canWrite = false;
appenders/multiprocess.js - Line 123 - emptyBuffer();
appenders/tcp-server.js - Line 19 - dataSoFar = events.pop();
appenders/tcp-server.js - Line 27 - dataSoFar = '';
(requires truthy value, used a noop function, but the function never gets called anyway)

appenders/index.js - Line 95 - }, /* istanbul ignore next */ () => {});
appenders/index.js - Line 78 - process.emitWarning(
appenders/index.js - Line 79 -   `Appender ${appenderConfig.type} exports a shutdown function.`,
appenders/index.js - Line 80 -   "DeprecationWarning", "log4js-node-DEP0002"
appenders/index.js - Line 81 - );
appenders/index.js - Line 82 - debug(`DEPRECATION: Appender ${appenderConfig.type} exports a shutdown function.`);
@lamweili lamweili force-pushed the update-test branch 19 times, most recently from 4d738c0 to 3b22a33 Compare March 7, 2022 14:51
@lamweili lamweili force-pushed the update-test branch 2 times, most recently from 55d4f2c to b634b1a Compare March 8, 2022 06:46
appenders/multiFile.js - Line 25 - debug('ignore error on file shutdown: %s', err.message);
lamweili added 3 commits March 8, 2022 15:33
(else path will never be taken)

appenders/multiFile.js - Line 17 - /* istanbul ignore else */
appenders/multiFile.js - Line 18 - if (timer && app) {
appenders/fileSync.js - Line 58 - throw new Error(`maxLogSize (${maxLogSize}) should be > 0`);
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