| 72 | } |
| 73 | |
| 74 | void require_throws(const std::function<void()> & fn, const std::string & label) { |
| 75 | bool threw = false; |
| 76 | try { |
| 77 | fn(); |
| 78 | } catch (const std::runtime_error &) { |
| 79 | threw = true; |
| 80 | } |
| 81 | engine::test::require(threw, label + " did not throw"); |
| 82 | } |
| 83 | |
| 84 | void require_chunk_invariants( |
| 85 | const std::vector<engine::runtime::TimeSpan> & chunks, |
no test coverage detected