MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / lower

Function lower

__tests__/telemetry-services.test.ts:1245–1248  ·  view source on GitHub ↗
(key: 'fresh' | 'agent' | 'upgrade', on: string)

Source from the content-addressed store, hash-verified

1243 const proof: InstallProof = { first: pick(), fresh: null, agent: null, upgrade: null };
1244 const seen = (on: string): void => void (on < proof.first && (proof.first = on));
1245 const lower = (key: 'fresh' | 'agent' | 'upgrade', on: string): void => {
1246 if (proof[key] === null || on < proof[key]!) proof[key] = on;
1247 seen(on);
1248 };
1249 uploads.push([machine, index(`${proof.first}T09:00:00Z`)]);
1250 for (let n = Math.floor(random() * 5); n > 0; n--) {
1251 const on = pick();

Callers 1

Calls 1

seenFunction · 0.70

Tested by

no test coverage detected