I have added a CI using Codecov to ensure that code is sufficiently covered when PR are done in my code.
But the job is still failing after the modifications I made. Here is the full report from codecov, which displays a positive change and no red flags.
There are some parts of the code that are not covered. Still, they correspond to some very specific cases where we never get at usage (except if we are deeply looking to get there, for instance, I manually added a non-printable character somewhere to fall in the condition if not_printable(ch): ....
So my question is actually two questions :
- Why does the CI job fail while no red flags appear on the codecov dashboard ?
- Is it possible to parameterize the coverage program to pass well ? An idea would be to skip the kind of code lines mentioned above, but I have no idea if it is possible to do it (nor how to do it)
--cov-branch?