MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / load_oval_data

Function load_oval_data

vulnerabilities/tests/test_data_source.py:36–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def load_oval_data():
37 etrees_of_oval = {}
38 for f in os.listdir(TEST_DATA):
39 if f.endswith("oval_data.xml"):
40 path = os.path.join(TEST_DATA, f)
41 provider = f.split("_")[0]
42 etrees_of_oval[provider] = ET.parse(path)
43 return etrees_of_oval
44
45
46class MockOvalImporter(OvalImporter):

Callers 1

test__collect_pkgsFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected