MCPcopy Index your code
hub / github.com/RustPython/RustPython / WorkerRunTests

Class WorkerRunTests

Lib/test/libregrtest/runtests.py:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194@dataclasses.dataclass(slots=True, frozen=True)
195class WorkerRunTests(RunTests):
196 json_file: JsonFile
197
198 def as_json(self) -> StrJSON:
199 return json.dumps(self, cls=_EncodeRunTests)
200
201 @staticmethod
202 def from_json(worker_json: StrJSON) -> 'WorkerRunTests':
203 return json.loads(worker_json, object_hook=_decode_runtests)
204
205
206class _EncodeRunTests(json.JSONEncoder):

Callers 2

_decode_runtestsFunction · 0.85

Calls

no outgoing calls

Tested by 2

_decode_runtestsFunction · 0.68