Table of Contents

Class InProcessValidator

Namespace
BenchmarkDotNet.Toolchains.InProcess
Assembly
BenchmarkDotNet.dll

Validator to be used together with InProcessNoEmitToolchain or InProcessEmitToolchain to proof that the config matches the environment.

public class InProcessValidator : IValidator
Inheritance
InProcessValidator
Implements

Fields

DontFailOnError

The instance of validator that does NOT fail on error.

public static readonly IValidator DontFailOnError

Field Value

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

FailOnError

The instance of validator that DOES fail on error.

public static readonly IValidator FailOnError

Field Value

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

Properties

TreatsWarningsAsErrors

Gets a value indicating whether warnings are treated as errors.

public bool TreatsWarningsAsErrors { get; }

Property Value

bool

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

Methods

Validate(BenchmarkCase)

public static IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCase)

Parameters

benchmarkCase BenchmarkCase
Validator to be used together with or to proof that the config matches the environment.

Returns

IEnumerable<ValidationError>
Validator to be used together with or to proof that the config matches the environment.

Validate(ValidationParameters)

Proofs that benchmarks' jobs match the environment.

public IEnumerable<ValidationError> Validate(ValidationParameters validationParameters)

Parameters

validationParameters ValidationParameters

The validation parameters.

Returns

IEnumerable<ValidationError>

Enumerable of validation errors.

See Also