mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Made func_coverace.py more robust.
This commit is contained in:
parent
3b07cf210b
commit
761421a148
2 changed files with 7 additions and 5 deletions
|
@ -27,10 +27,12 @@ for filename in os.listdir("tests"):
|
||||||
with open(filepath, "r") as f:
|
with open(filepath, "r") as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
if line.startswith("module "):
|
if line.startswith("module "):
|
||||||
funcname = line[7:].strip().split("(")[0].strip().split("_",1)[1]
|
testmodule = line[7:].strip().split("(")[0].strip()
|
||||||
if funcname in uncovered:
|
if testmodule.startswith("test_"):
|
||||||
covered.append(funcname)
|
funcname = testmodule.split("_",1)[1]
|
||||||
del uncovered[funcname]
|
if funcname in uncovered:
|
||||||
|
covered.append(funcname)
|
||||||
|
del uncovered[funcname]
|
||||||
|
|
||||||
uncovered_by_file = {}
|
uncovered_by_file = {}
|
||||||
for funcname in sorted(list(uncovered.keys())):
|
for funcname in sorted(list(uncovered.keys())):
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,335];
|
BOSL_VERSION = [2,0,336];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue