MCPcopy Create free account
hub / github.com/denoland/std / formatter

Function formatter

cli/unstable_progress_bar_test.ts:132–139  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

130 max: 10 * 1000,
131 keepOpen: false,
132 formatter(x) {
133 called = true;
134 if (lastTime != undefined) assertEquals(x.previousTime, lastTime);
135 if (lastValue != undefined) assertEquals(x.previousValue, lastValue);
136 lastTime = x.time;
137 lastValue = x.value;
138 return "";
139 },
140 });
141
142 bar.value += 1000;

Callers 2

buildEqualErrorMessageFunction · 0.85

Calls 1

assertEqualsFunction · 0.90

Tested by

no test coverage detected