|
|
|
|
66
|
|
66
|
|
67
|
def coverage_output(lcov, bcov, length=None):
|
67
|
def coverage_output(lcov, bcov, length=None):
|
68
|
if lcov is None or bcov is None:
|
68
|
if lcov is None or bcov is None:
|
|
|
69
|
+ length = length or len(STATUS_UNKNOWN)
|
69
|
return (length - len(STATUS_UNKNOWN)) * ' ' + status_output(STATUS_UNKNOWN, termcolors.FAIL)
|
70
|
return (length - len(STATUS_UNKNOWN)) * ' ' + status_output(STATUS_UNKNOWN, termcolors.FAIL)
|
70
|
elif lcov > 90:
|
71
|
elif lcov > 90:
|
71
|
rv = termcolors.OKGREEN + '%3d%% (%3d%%)' % (lcov, bcov) + termcolors.ENDC
|
72
|
rv = termcolors.OKGREEN + '%3d%% (%3d%%)' % (lcov, bcov) + termcolors.ENDC
|