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

Function createMockUuid

common/src/testing/mocks/crypto.ts:85–89  ·  view source on GitHub ↗
(prefix: string, index?: number)

Source from the content-addressed store, hash-verified

83 * ```
84 */
85export function createMockUuid(prefix: string, index?: number): UUID {
86 const indexStr =
87 index !== undefined ? String(index).padStart(12, '0') : '000000000000'
88 return `${prefix}-0000-0000-0000-${indexStr}` as UUID
89}
90
91/**
92 * Sets up a spy on crypto.randomUUID with deterministic behavior.

Callers 2

setupCryptoMocksFunction · 0.85
createUuidGeneratorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected