-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WIP) Travis: Show new/changed uncovered lines
- Loading branch information
1 parent
9d386f5
commit 7e10170
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
|
||
for line in sys.stdin: | ||
try: | ||
filename, no_filename = line.split(':') | ||
start_and_end = no_filename.split(' ')[0] | ||
start, end = start_and_end.split(',') | ||
start_line = int(start.split('.')[0]) | ||
end_line = int(end.split('.')[0]) | ||
except ValueError: | ||
print(line) | ||
continue | ||
for line_num in range(start_line, end_line+1): | ||
print(filename + ':' + str(line_num) + ': Uncovered') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters