MCPcopy
hub / github.com/angular/angular / createCountingValidator

Function createCountingValidator

packages/benchpress/test/sampler_spec.ts:227–236  ·  view source on GitHub ↗
(count: number, validSample?: MeasureValues[], log: any[] = [])

Source from the content-addressed store, hash-verified

225}
226
227function createCountingValidator(count: number, validSample?: MeasureValues[], log: any[] = []) {
228 return new MockValidator(log, (completeSample: MeasureValues[]) => {
229 count--;
230 if (count === 0) {
231 return validSample || completeSample;
232 } else {
233 return null;
234 }
235 });
236}
237
238function createCountingMetric(log: any[] = []) {
239 let scriptTime = 0;

Callers 1

sampler_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…