Class InProcessValidator
Validator to be used together with InProcessToolchain to proof that the config matches the environment.
Implements
Namespace: BenchmarkDotNet.Toolchains.InProcess
Assembly: BenchmarkDotNet.dll
Syntax
public class InProcessValidator : IValidator
Fields
DontFailOnError
The instance of validator that does NOT fail on error.
Declaration
public static readonly IValidator DontFailOnError
Field Value
Type | Description |
---|---|
IValidator |
FailOnError
The instance of validator that DOES fail on error.
Declaration
public static readonly IValidator FailOnError
Field Value
Type | Description |
---|---|
IValidator |
Properties
TreatsWarningsAsErrors
Gets a value indicating whether warnings are treated as errors.
Declaration
public bool TreatsWarningsAsErrors { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
IsSupported(BenchmarkCase, ILogger)
Declaration
public static bool IsSupported(BenchmarkCase benchmarkCase, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
BenchmarkCase | benchmarkCase | |
ILogger | logger |
Returns
Type | Description |
---|---|
Boolean |
Validate(ValidationParameters)
Proofs that benchmarks' jobs match the environment.
Declaration
public IEnumerable<ValidationError> Validate(ValidationParameters validationParameters)
Parameters
Type | Name | Description |
---|---|---|
ValidationParameters | validationParameters | The validation parameters. |
Returns
Type | Description |
---|---|
IEnumerable<ValidationError> | Enumerable of validation errors. |