types_test

package
v0.3.1-beholder Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertEqualer

type AssertEqualer[T any] interface {
	AssertEqual(ctx context.Context, t *testing.T, other T)
}

AssertEqualer is a helper interface for testing types implementations must run all the methods asserting for equality with the other type and no error. Implementations should use parallel subcomponent testing eg t.Parallel() and t.Run("subcomponentX", func(t *testing.T) { ... })

type CodecEvaluator

type CodecEvaluator interface {
	types.Codec
	Evaluator[types.Codec]
}

CodecEvaluator is a helper interface for testing Codecs

type ContractConfigTrackerEvaluator

type ContractConfigTrackerEvaluator interface {
	libocr.ContractConfigTracker
	Evaluator[libocr.ContractConfigTracker]
}

ContractConfigTrackerEvaluator is a helper interface for testing ContractConfigTrackers

type ContractReaderTester added in v0.2.2

type ContractReaderTester interface {
	types.ContractReader
	Evaluator[types.ContractReader]
}

ContractReaderTester is a helper interface for testing ContractReaders

type ContractTransmitterEvaluator

type ContractTransmitterEvaluator interface {
	libocr.ContractTransmitter
	Evaluator[libocr.ContractTransmitter]
}

ContractTransmitterEvaluator is a helper interface for testing ContractTransmitters

type ErrorLogEvaluator

type ErrorLogEvaluator interface {
	core.ErrorLog
	Evaluator[core.ErrorLog]
}

ErrorLogEvaluator is a helper interface for testing ErrorLogs

type Evaluator

type Evaluator[T any] interface {
	Evaluate(ctx context.Context, other T) error
}

Evaluator is a helper interface for testing types implementations must run all the methods of the other type and 1. return on the first error encounter 2. return an error the first time that the result of an executed method does not match the expected result

type OCR3ContractTransmitterEvaluator

type OCR3ContractTransmitterEvaluator interface {
	ocr3types.ContractTransmitter[[]byte]
	Evaluator[ocr3types.ContractTransmitter[[]byte]]
}

OCR3ContractTransmitterEvaluator is a helper interface for testing OCR3 ContractTransmitters

type OffchainConfigDigesterEvaluator

type OffchainConfigDigesterEvaluator interface {
	libocr.OffchainConfigDigester
	Evaluator[libocr.OffchainConfigDigester]
}

OffchainConfigDigesterEvaluator is a helper interface for testing OffchainConfigDigesters

type PipelineEvaluator

type PipelineEvaluator interface {
	core.PipelineRunnerService
	Evaluator[core.PipelineRunnerService]
}

PipelineEvaluator is a helper interface for testing PipelineRunnerServices

type ReportingPluginTester

type ReportingPluginTester interface {
	libocr.ReportingPlugin
	AssertEqualer[libocr.ReportingPlugin]
}

type TelemetryEvaluator

type TelemetryEvaluator interface {
	core.TelemetryClient
	Evaluator[core.TelemetryClient]
}

TelemetryEvaluator is a helper interface for testing TelemetryClients

type ValidationEvaluator

type ValidationEvaluator interface {
	core.ValidationService
	Evaluator[core.ValidationService]
}

ValidationEvaluator is a helper interface for testing ValidationService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL