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

Class Driver

helper/driverparser.py:6–33  ·  view source on GitHub ↗

Used as a structure to store data for a driver.

Source from the content-addressed store, hash-verified

4
5
6class Driver:
7 """
8 Used as a structure to store data for a driver.
9 """
10
11 def __init__(self, name: str, path: Path, source: Path):
12 """
13 Construct driver.
14
15 :param name: driver name
16 :param path: driver path
17 :param source: driver main UT source path
18 """
19 self.name = name
20 self.path = path
21 self.source = source
22
23 def __str__(self):
24 """
25 Print driver.
26
27 :return: returns pretty print string for an object.
28 """
29 return (
30 f"Driver[name: {self.name}\n"
31 f" path: {str(self.path)}\n"
32 f" source: {str(self.source)}]\n"
33 )
34
35
36class DriverParser:

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected