mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-11 06:54:08 +02:00
Corrected coverage percentage calculation.
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,23];
|
||||
BOSL_VERSION = [2,0,24];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
Reference in New Issue
Block a user