Corrected coverage percentage calculation.

This commit is contained in:
Revar Desmera 2019-11-09 23:06:58 -08:00
parent daf13d4e51
commit 902fb3e2cd
2 changed files with 5 additions and 4 deletions

View file

@ -53,11 +53,12 @@ for cnt, filename in sorted(mostest, key=operator.itemgetter(0)):
for funcname in filefuncs:
print(" {}".format(funcname))
totfuncs = len(funcs.keys())
covfuncs = len(covered)
print(
"Total coverage: {} of {} functions ({:.2f}%)".format(
len(uncovered.keys()),
len(funcs.keys()),
100.0*len(uncovered.keys())/len(funcs.keys())
covfuncs, totfuncs, 100.0*covfuncs/totfuncs
)
)

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,23];
BOSL_VERSION = [2,0,24];
// Section: BOSL Library Version Functions