verify

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: BSD-3-Clause Imports: 6 Imported by: 5 modules, 26 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package verify is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(verifiables ...Verifiable) error

All returns nil if all the verifiables were verified with no errors

func SameSubnet

func SameSubnet(ctx *snow.Context, peerChainID ids.ID) error

SameSubnet verifies that the provided [ctx] was provided to a chain in the same subnet as [peerChainID], but not the same chain. If this verification fails, a non-nil error will be returned.

Types

type MockVerifiable

type MockVerifiable struct {
	// contains filtered or unexported fields
}

MockVerifiable is a mock of Verifiable interface.

func NewMockVerifiable

func NewMockVerifiable(ctrl *gomock.Controller) *MockVerifiable

NewMockVerifiable creates a new mock instance.

func (*MockVerifiable) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVerifiable) Verify

func (m *MockVerifiable) Verify() error

Verify mocks base method.

type MockVerifiableMockRecorder

type MockVerifiableMockRecorder struct {
	// contains filtered or unexported fields
}

MockVerifiableMockRecorder is the mock recorder for MockVerifiable.

func (*MockVerifiableMockRecorder) Verify

func (mr *MockVerifiableMockRecorder) Verify() *gomock.Call

Verify indicates an expected call of Verify.

type State

type State interface {
	snow.ContextInitializable
	Verifiable
	VerifyState() error
}

State that can be verified

type Verifiable

type Verifiable interface {
	Verify() error
}

Verifiable can be verified

Jump to

Keyboard shortcuts

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