It’s been discussed a few times that code coverage tools do not see lines where a literal value are not flagged as executable lines. To wit:
I’m frustrated by this problem and I’m attempting to fix it in a library I’m building. (See https://github.com/elixir-git/xgit/pull/122.)
I’ll start by saying I don’t like my fix, but I like even less the notion that I have to sacrifice insight into how well my library is covered.
I work that I’m doing in my day job, I have actually seen bugs get masked because we didn’t know the code was poorly covered.
I’m hoping that somebody can point me to a “better” solution that is less hacky, but doesn’t involve compromising on meaningful code coverage.