MCPcopy Create free account
hub / github.com/antirez/ds4 / test_assert

Function test_assert

ds4_server.c:11846–11850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11844 if (end < start) end = start;
11845
11846 d->start = start;
11847 d->count = end - start;
11848 if (d->count > TRACE_CACHE_WINDOW) d->count = TRACE_CACHE_WINDOW;
11849 for (int i = 0; i < d->count; i++) {
11850 int pos = start + i;
11851 d->live_id[i] = live && pos < live->len ? live->v[pos] : -1;
11852 d->prompt_id[i] = prompt && pos < prompt->len ? prompt->v[pos] : -1;
11853 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected