Show / Hide Table of Contents

Class InProcessValidator

Validator to be used together with InProcessToolchain to proof that the config matches the environment.

Inheritance
Object
InProcessValidator
Implements
IValidator
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

true if the validator should treat warnings as errors; otherwise, false.

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.

Implements

IValidator

See Also

IValidator
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors