Undercoverage reports lack of coverage in ViewComponent classes
From !83882 (merged).
A method and its specs were copied over to a new class but curiously now report a lack of coverage on "...#{path[-(max - 3)..]}"
in Diffs::StatsComponent#diff_file_path_text
. This is despite a test that would fail if that line wasn't being executed
This is an issue for investigating/fixing the coverage, separated from !83882 (merged) so it doesn't hold up the merge.
Updated info
The coverage reports have no idea of the relationship between the final rendered output and the methods in the component class. So you can have full test coverage of the output of the class but it won't associate that with the individual method output like it would with unit tests.
Edited by Robert May