Skip to content

Commit d769e0d

Browse files
Fix files only covered by one LCOV report showing 100% coverage
1 parent 33f78b2 commit d769e0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diff_cover/violationsreporters/violations_reporter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ def _cache_file(self, src_path):
392392
src_search_path = src_abs_path
393393
if src_search_path not in lcov_document:
394394
src_search_path = src_rel_path
395+
if src_search_path not in lcov_document:
396+
continue
395397

396398
# First case, need to define violations initially
397399
if violations is None:

0 commit comments

Comments
 (0)