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

Function test_istio_process_file

vulnerabilities/tests/test_istio.py:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_istio_process_file():
48 path = os.path.join(TEST_DIR, "test_file.md")
49 expected_file = os.path.join(TEST_DIR, f"istio-expected.json")
50 result = [
51 data.to_dict() for data in list(IstioImporter().process_file(Path(path), Path(path).parent))
52 ]
53 util_tests.check_results_against_json(result, expected_file)
54
55
56@mock.patch("vulnerabilities.improvers.valid_versions.IstioImprover.get_package_versions")

Callers

nothing calls this directly

Calls 3

IstioImporterClass · 0.90
to_dictMethod · 0.45
process_fileMethod · 0.45

Tested by

no test coverage detected