MCPcopy Index your code
hub / github.com/simstudioai/sim / updateOrderForTable

Function updateOrderForTable

apps/sim/lib/table/__tests__/lock-order.test.ts:74–80  ·  view source on GitHub ↗

invocationCallOrder of the first `tx.update(table)` call.

(table: unknown)

Source from the content-addressed store, hash-verified

72
73/** invocationCallOrder of the first `tx.update(table)` call. */
74function updateOrderForTable(table: unknown): number {
75 const { calls, invocationCallOrder } = dbChainMockFns.update.mock
76 for (let i = 0; i < calls.length; i++) {
77 if (calls[i][0] === table) return invocationCallOrder[i]
78 }
79 return -1
80}
81
82describe('table import lock ordering', () => {
83 beforeEach(() => {

Callers 1

lock-order.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected