@angular/benchpress
Version:
Benchpress - a framework for e2e performance tests
39 lines (38 loc) • 1.22 kB
TypeScript
/**
* @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 checks the regression slope of a specific metric.
* Waits for the regression slope to be >=0.
*/
export declare class RegressionSlopeValidator extends Validator {
private _sampleSize;
private _metric;
static SAMPLE_SIZE: InjectionToken<unknown>;
static METRIC: InjectionToken<unknown>;
static PROVIDERS: ({
provide: typeof RegressionSlopeValidator;
deps: InjectionToken<unknown>[];
useValue?: undefined;
} | {
provide: InjectionToken<unknown>;
useValue: number;
deps?: undefined;
} | {
provide: InjectionToken<unknown>;
useValue: string;
deps?: undefined;
})[];
constructor(_sampleSize: number, _metric: string);
describe(): {
[key: string]: any;
};
validate(completeSample: MeasureValues[]): MeasureValues[] | null;
}