Skip to content

Commit 499c247

Browse files
Making max-cov-count param of type int
1 parent 2f2c36a commit 499c247

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp_coveralls/coverage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def create_args(params):
7272
help='Follow symlinks (default off)')
7373
parser.add_argument('-l', '--lcov-file', metavar='FILE',
7474
help='Upload lcov generated info file')
75-
parser.add_argument('--max-cov-count', metavar='NUMBER',
75+
parser.add_argument('--max-cov-count', metavar='NUMBER', type=int,
7676
help='Max number for line coverage count. If line'
7777
'coverage count is greater than the given number'
7878
'(Max + 1) will be put instead. Helps in managing'
@@ -300,8 +300,8 @@ def parse_lcov_file_info(args, filepath, line_iter, line_coverage_re, file_end_s
300300
line_no = line_coverage_match.group(1)
301301
cov_count = int(line_coverage_match.group(2))
302302
if args.max_cov_count:
303-
if cov_count > int(args.max_cov_count):
304-
cov_count = int(args.max_cov_count) + 1
303+
if cov_count > args.max_cov_count:
304+
cov_count = args.max_cov_count + 1
305305
lines_covered.append((line_no, cov_count))
306306
else:
307307
break

0 commit comments

Comments
 (0)