Returns true as long as the segment is internally consistent. Checks invariants of mark_done, depending on whether the segment has been uploaded. This is useful in cases with tests with failures and concurrent execution, and calls out the state of the segment in any case to the rea
(seg)
| 61 | |
| 62 | |
| 63 | def indeterminate(seg): |
| 64 | """Returns true as long as the segment is internally consistent. |
| 65 | |
| 66 | Checks invariants of mark_done, depending on whether the segment |
| 67 | has been uploaded. This is useful in cases with tests with |
| 68 | failures and concurrent execution, and calls out the state of the |
| 69 | segment in any case to the reader. |
| 70 | """ |
| 71 | if seg._uploaded: |
| 72 | if seg.explicit: |
| 73 | assert seg._marked is False |
| 74 | else: |
| 75 | assert seg._marked is True |
| 76 | else: |
| 77 | assert seg._marked is False |
| 78 | |
| 79 | return True |
| 80 | |
| 81 | |
| 82 | def prepare_multi_upload_segments(): |
no outgoing calls
no test coverage detected