MCPcopy
hub / github.com/prometheus/client_js / fn

Function fn

test/counterTest.js:38–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 });
37 it('should not be possible to decrease a counter', () => {
38 const fn = function () {
39 instance.inc(-100);
40 };
41 expect(fn).toThrowErrorMatchingSnapshot();
42 });
43 it('should throw an error when the value is not a number', () => {

Callers

nothing calls this directly

Calls 3

incMethod · 0.65
labelsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected