MCPcopy Create free account
hub / github.com/Niko1221/Strata / check

Function check

engine/src/core/coupled_draft_test.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20int g_fail = 0;
21int64_t g_checks = 0;
22void check(bool ok, const char* what, long long a = 0, long long b = 0) {
23 ++g_checks;
24 if (!ok) {
25 if (++g_fail <= 20) std::printf(" FAIL %s (%lld vs %lld)\n", what, a, b);
26 }
27}
28
29// verify.cpp run(): sp.counter = pos0, and the kernel draws row t with sp.counter + t
30uint64_t verify_row_counter(int64_t pos0, int t) { return (uint64_t) pos0 + (uint64_t) t; }

Callers 3

check_chainFunction · 0.70
check_historyFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected