MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / TestClass

Class TestClass

src/platform/common/utils/decorators.unit.test.ts:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 clearCache();
37 });
38 class TestClass {
39 public invoked = false;
40 @cache(1000)
41 public async doSomething(a: number, b: number): Promise<number> {
42 this.invoked = true;
43 return a + b;
44 }
45 }
46
47 test('Result should be cached for 1s', async () => {
48 const cls = new TestClass();

Callers

nothing calls this directly

Calls 1

cacheFunction · 0.90

Tested by

no test coverage detected