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

Method increment

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

Source from the content-addressed store, hash-verified

269 }
270
271 increment(key: K): void {
272 if (typeof this._total !== 'undefined') {
273 this._total++
274 }
275 this.set(key, this.get(key) + 1)
276 }
277
278 total(): number {
279 if (typeof this._total !== 'undefined') {

Callers 5

_resolveKeyMethod · 0.80
_reconcileMethod · 0.80
probeExpectedSnapshotMethod · 0.80
a.test.tsFile · 0.80
b.test.tsFile · 0.80

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected