MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / Test

Class Test

common.py:1096–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094TestResult = enum.Enum('TestResult', ['PASS', 'FAIL'])
1095
1096class Test:
1097 def __init__(
1098 self,
1099 test_id: str,
1100 result : TestResult =None,
1101 ellapsed_seconds : float =None
1102 ):
1103 self.test_id = test_id
1104 self.result = result
1105 self.ellapsed_seconds = ellapsed_seconds
1106 def __str__(self):
1107 out = []
1108 if self.result is not None:
1109 out.append(self.result.name)
1110 if self.ellapsed_seconds is not None:
1111 out.append(LkmcCliFunction.seconds_to_hms(self.ellapsed_seconds))
1112 out.append(self.test_id)
1113 return ' '.join(out)
1114
1115class TestCliFunction(LkmcCliFunction):
1116 '''

Callers 1

test_teardownMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_teardownMethod · 0.68