MCPcopy
hub / github.com/vitest-dev/vitest / get

Method get

packages/snapshot/src/port/utils.ts:247–252  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

245 }
246
247 override get(key: K): V {
248 if (!this.has(key)) {
249 this.set(key, this.defaultFn(key))
250 }
251 return super.get(key)!
252 }
253}
254
255export class CounterMap<K> extends DefaultMap<K, number> {

Callers 7

createMockFunction · 0.45
getSnapshotStateMethod · 0.45
incrementMethod · 0.45
memoFunction · 0.45
clearTestMethod · 0.45
_resolveKeyMethod · 0.45
probeExpectedSnapshotMethod · 0.45

Calls 2

hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected