Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/tools / / getCounterForTesting

Function: getCounterForTesting()

ts
function getCounterForTesting(name, labels?): number;

Defined in: packages/tools/src/audit/counters.ts:138

Experimental

Read a single counter (returns 0 when absent). Used by tests to make assertions on specific counter increments.

Parameters

ParameterType
namestring
labels?Readonly<Record&lt;string, string | number | boolean&gt;>

Returns

number