MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / row

Function row

web/src/server/free-session/__tests__/session-view.test.ts:12–26  ·  view source on GitHub ↗
(overrides: Partial<InternalSessionRow> = {})

Source from the content-addressed store, hash-verified

10const TEST_MODEL = 'deepseek/deepseek-v4-pro'
11
12function row(overrides: Partial<InternalSessionRow> = {}): InternalSessionRow {
13 const now = new Date('2026-04-17T12:00:00Z')
14 return {
15 user_id: 'u1',
16 status: 'queued',
17 active_instance_id: 'inst-1',
18 model: TEST_MODEL,
19 queued_at: now,
20 admitted_at: null,
21 expires_at: null,
22 created_at: now,
23 updated_at: now,
24 ...overrides,
25 }
26}
27
28describe('estimateWaitMs', () => {
29 test('position 1 → 0 wait (next tick picks you up)', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected