Skip to main content
Module

x/rimbu/spy/mod.ts>Spy.ObjMeta

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface Spy.ObjMeta
import { type Spy } from "https://deno.land/x/rimbu@0.14.0/spy/mod.ts";
const { ObjMeta } = Spy;

The additional information available for spied objects.

Methods

getter
callSequence(): Spy.MethodCall<T>[]

Returns an array containing a sequence of the object methods called and the given parameters.

getter
nrCalls(): number

Returns the amount of calls that the object methods received.

clearCallSequence(): void

Empties this spied objects' callSequence.

clearMethods(): void

Empties for each method its call history.

clearAll(): void

Empties both the spied objects' call sequence and its method call histories.

resetMethodStubs(): void

Resets the stub implementations for all object methods.