validatorsmock

package
v1.11.14 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package validatorsmock provides mock validators for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSet added in v1.11.14

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

MockSet is a mock validator set

func NewMockSet added in v1.11.14

func NewMockSet() *MockSet

NewMockSet creates a new mock validator set

func (*MockSet) Add added in v1.11.14

func (m *MockSet) Add(validator validators.Validator) error

Add adds a validator to the set

func (*MockSet) Get added in v1.11.14

func (m *MockSet) Get(validatorID string) (validators.Validator, error)

Get retrieves a validator by ID

func (*MockSet) Len added in v1.11.14

func (m *MockSet) Len() int

Len returns the number of validators

func (*MockSet) Remove added in v1.11.14

func (m *MockSet) Remove(validatorID string) error

Remove removes a validator from the set

Jump to

Keyboard shortcuts

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