MCPcopy Create free account
hub / github.com/denoland/std / getSession

Function getSession

testing/_mock_utils.ts:28–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27// deno-lint-ignore no-explicit-any
28function getSession(): Set<Spy<any, any[], any>> {
29 if (sessions.length === 0) sessions.push(new Set());
30 return sessions.at(-1)!;
31}
32
33// deno-lint-ignore no-explicit-any
34export function registerMock(spy: Spy<any, any[], any>) {

Callers 2

registerMockFunction · 0.85
unregisterMockFunction · 0.85

Calls 2

pushMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected