Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusInput ¶
type ConsensusInput[T any] struct { Observations []T }
type IdenticalConsensusMock ¶
type IdenticalConsensusMock[T any] struct { *testutils.Mock[ConsensusInput[T], ocr3cap.SignedReport] }
IdenticalConsensusMock is a mock of the identical consensus capability Note that the mock ignores the encoding and it's config, only validating that they conform to the schema The mock will encode the single value using values.Value and signatures will be random bytes
func IdenticalConsensus ¶
func IdenticalConsensus[T any](runner *testutils.Runner) *IdenticalConsensusMock[T]
IdenticalConsensus registers a new capability mock with the runner If a step is explicitly mocked by another mock, that will take priority over this one for that step.
func IdenticalConsensusForStep ¶
func IdenticalConsensusForStep[T any](runner *testutils.Runner, step string) *IdenticalConsensusMock[T]
IdenticalConsensusForStep registers a new capability mock with the runner, but only for a given step. if another mock was registered for the same capability without a step, this mock will take priority for that step.
func (*IdenticalConsensusMock[T]) GetStepDecoded ¶
func (c *IdenticalConsensusMock[T]) GetStepDecoded(ref string) testutils.StepResults[ConsensusInput[T], T]