MCPcopy Create free account
hub / github.com/RustPython/RustPython / has_meaningful_duration

Method has_meaningful_duration

Lib/test/libregrtest/result.py:61–72  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

59
60 @staticmethod
61 def has_meaningful_duration(state):
62 # Consider that the duration is meaningless for these cases.
63 # For example, if a whole test file is skipped, its duration
64 # is unlikely to be the duration of executing its tests,
65 # but just the duration to execute code which skips the test.
66 return state not in {
67 State.SKIPPED,
68 State.RESOURCE_DENIED,
69 State.INTERRUPTED,
70 State.WORKER_FAILED,
71 State.WORKER_BUG,
72 State.DID_NOT_RUN}
73
74 @staticmethod
75 def must_stop(state):

Callers 2

accumulate_resultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected