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

Function uniqueNs

apps/sim/providers/client-cache.test.ts:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 */
22let keyCounter = 0
23function uniqueNs(): string {
24 keyCounter += 1
25 return `ns-${keyCounter}-${Date.now()}`
26}
27
28describe('getCachedProviderClient', () => {
29 it('returns the SAME instance for an identical key and runs the factory once (memoized)', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected