mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Corrected coverage percentage calculation.
This commit is contained in:
parent
daf13d4e51
commit
902fb3e2cd
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue