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

Method parse

helper/driverparser.py:55–68  ·  view source on GitHub ↗

Parse a given path to get driver information. :return: returns list of Drivers sorted with name.

(self)

Source from the content-addressed store, hash-verified

53 self.name = name[4:]
54
55 def parse(self) -> List[Driver]:
56 """
57 Parse a given path to get driver information.
58
59 :return: returns list of Drivers sorted with name.
60 """
61 drivers = self.load_drivers()
62 report = self.load_gen_report()
63 drivers = [
64 Driver(driver_name, driver_path, report[driver_name])
65 for driver_name, driver_path in drivers.items()
66 ]
67 drivers.sort(key=lambda x: x.name)
68 return drivers
69
70 def load_drivers(self) -> dict:
71 """

Callers 1

build_driverFunction · 0.95

Calls 3

load_driversMethod · 0.95
load_gen_reportMethod · 0.95
DriverClass · 0.85

Tested by

no test coverage detected