Commit bbf5d4b
Ignore bindgen generated modules for codecov purposes
Modules generated by bindgen.rs do not contain any logic, but rather
just define structs, constants, etc. However, bindgen does generate a
lot of tests for these for example to check alignment and size. The
problem here is that it does not put these into a `mod test` behind a
`cfg(test)`, meaning code coverage tooling picks them up as production
code. This means that all `assert!` statements are marked as partially
uncovered, resulting in reported code coverage for these files (that
don't even contain any logic) to be 30%.
Thus, exclude these files from the coverage reports.
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>1 parent 81cacbf commit bbf5d4b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
0 commit comments