Open mssun opened 6 years ago
Can you test the coverage on the sh-parser
branch? It no longer uses nom
so I'm curious if that helped at all.
Still zero coverage for parser.rs
: https://codecov.io/gh/mesalock-linux/mesabox/tree/373875043044f1f248f48477d3cf19f92fab8273/libmesabox/src/posix/sh
Not sure what the problem is then :/
I found that the libmesabox
test (unit tests) reported coverage statistics of parser.rs
(though zero coverage because of no unit tests for parser I guess). However, if we only look at the integration tests, here is no report of parser.rs
for the integration tests. This is wired. This implies that all symbols of parser.rs
are missing and the file is also not included in the report.
Another case is that the parser_num
function is explicitly called by tests, but the coverage results show it was not hit. https://codecov.io/gh/mesalock-linux/mesabox/src/master/libmesabox/src/posix/head.rs#L339
With further investigation, I found that functions in validator_os
in clap
will not be counted.
Everything works well except for files/functions under shell. I don't why the integration test cases for shell will not emit hit counts. Therefore, the test coverage for
posix/sh
is not accurate.