(state)
| 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): |
no outgoing calls
no test coverage detected