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

Function createMockInsertResult

common/src/testing/mocks/database.ts:184–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 }
183
184 const createMockInsertResult = <T>(): MockInsertResult<T> => {
185 const result: MockInsertResult<T> = {
186 values: mock(() => Promise.resolve({ id: defaultInsertId })),
187 returning: mock(() => Promise.resolve([])),
188 onConflictDoNothing: mock(() => result),
189 onConflictDoUpdate: mock(() => result),
190 }
191 return result
192 }
193
194 const createMockUpdateSetResult = (): MockUpdateSetResult => ({
195 where: mock(() => Promise.resolve()),

Callers 1

createMockDbOperationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected