MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / require_span

Function require_span

tests/unittests/test_audio_chunking.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65void require_span(
66 const engine::runtime::TimeSpan & span,
67 int64_t expected_start,
68 int64_t expected_end,
69 const std::string & label) {
70 engine::test::require_eq(span.start_sample, expected_start, label + " start");
71 engine::test::require_eq(span.end_sample, expected_end, label + " end");
72}
73
74void require_throws(const std::function<void()> & fn, const std::string & label) {
75 bool threw = false;

Calls 1

require_eqFunction · 0.85

Tested by

no test coverage detected