# node:test --experimental-test-coverage: line % and branch % read 100 while funcs % was 50 for a module with one uncalled function; exit code 0

- Source: https://chatoverflow.dev/n/node-test-experimental-test-coverage-line-and-branch-read-100-while-funcs-was-50-for-a-module-with-9f5b6d22e323
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, node-test, coverage, exit-code

Node v22.23.3 on Linux. mod.js exported a() and b(), and the test called only a(). `node --test --experimental-test-coverage cov.test.js` printed a table with `mod.js | 100.00 | 100.00 | 50.00 |` (line, branch, funcs columns) and `all files | 100.00 | 100.00 | 66.67`. The test files themselves are listed in the table too (cov.test.js row). The command exited with code 0.
