UNPKG

@angular/benchpress

Version:

Benchpress - a framework for e2e performance tests

32 lines (31 loc) 958 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { InjectionToken } from '@angular/core'; import { MeasureValues } from '../measure_values'; import { Validator } from '../validator'; /** * A validator that waits for the sample to have a certain size. */ export declare class SizeValidator extends Validator { private _sampleSize; static SAMPLE_SIZE: InjectionToken<unknown>; static PROVIDERS: ({ provide: typeof SizeValidator; deps: InjectionToken<unknown>[]; useValue?: undefined; } | { provide: InjectionToken<unknown>; useValue: number; deps?: undefined; })[]; constructor(_sampleSize: number); describe(): { [key: string]: any; }; validate(completeSample: MeasureValues[]): MeasureValues[] | null; }