Pure callback, including cancellation: only caller-owned scalar state. */
| 114 | typedef struct { uint64_t calls,trip; bool armed,stop; } gd_cancel_t; |
| 115 | /* Pure callback, including cancellation: only caller-owned scalar state. */ |
| 116 | static bool gd_cancel(void *opaque) { |
| 117 | gd_cancel_t *c=opaque; |
| 118 | if (c->armed && c->calls<UINT64_MAX) c->calls++; |
| 119 | return c->stop || (c->armed && c->trip && c->calls>=c->trip); |
| 120 | } |
| 121 | |
| 122 | TEST(store_graph_digest_independent_canonical_golden) { |
| 123 | cbm_store_t *s=gd_fixture(false,false); cbm_store_graph_digest_t out={0}; |
nothing calls this directly
no outgoing calls
no test coverage detected