MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / TestClass

Class TestClass

backend/api/src/postgres-proxy/utils/cache.util.spec.ts:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 mockMethod = jest.fn();
345
346 class TestClass {
347 @Cacheable((arg1, arg2) => `test:${arg1}:${arg2}`, 100)
348 async testMethod(arg1: string, arg2: string): Promise<string> {
349 return mockMethod(arg1, arg2);
350 }
351 }
352
353 testClass = new TestClass();
354 });

Callers

nothing calls this directly

Calls 1

CacheableFunction · 0.90

Tested by

no test coverage detected