MCPcopy Create free account
hub / github.com/dailydotdev/apps / ranked

Function ranked

packages/shared/src/features/feedExplain/describe.spec.ts:18–27  ·  view source on GitHub ↗
(overrides: Partial<RankedExplain> = {})

Source from the content-addressed store, hash-verified

16} from './describe';
17
18const ranked = (overrides: Partial<RankedExplain> = {}): RankedExplain => ({
19 lane: 'chal',
20 v: 1,
21 score: 0.81,
22 base: { value: 1.2, viewers: 1200 },
23 follow: { factor: 1 },
24 age: { days: 2.1, factor: 0.81 },
25 seen: { shows: 0, factor: 1 },
26 ...overrides,
27});
28
29const match = (
30 overrides: Partial<NonNullable<RankedExplain['match']>> = {},

Callers 1

describe.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected