MCPcopy Create free account
hub / github.com/Samsung/UTopia / load_gen_report

Method load_gen_report

helper/driverparser.py:84–100  ·  view source on GitHub ↗

Parse a given path to load fuzzgen report. :return: returns dictionary whose key is driver name and value for its main UT source path.

(self)

Source from the content-addressed store, hash-verified

82 return {path.name: path for path in driver_paths}
83
84 def load_gen_report(self) -> dict:
85 """
86 Parse a given path to load fuzzgen report.
87
88 :return: returns dictionary whose key is driver name and value for its
89 main UT source path.
90 """
91 report_path = self.basedir / "fuzzGen_Report.json"
92
93 with open(report_path) as f:
94 data = json.load(f)
95
96 report = {
97 ut_info["Name"]: Path(ut_info["FuzzTestSrc"])
98 for ut_info in data["UT"]
99 }
100 return report

Callers 1

parseMethod · 0.95

Calls 2

PathClass · 0.50
loadMethod · 0.45

Tested by

no test coverage detected