mock

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calls

type Calls struct {
	Update []UpdateCall
	Get    int
}

type GetRet

type GetRet struct {
	Ret lib.AddressSet
	Err error
}

type MockImplementation

type MockImplementation struct {
	GetRet    GetRet
	UpdateRet error
	// contains filtered or unexported fields
}

func NewImplementation

func NewImplementation() *MockImplementation

func (*MockImplementation) Calls

func (mi *MockImplementation) Calls() Calls

func (*MockImplementation) GetAllowedAddresses

func (mi *MockImplementation) GetAllowedAddresses() (lib.AddressSet, error)

func (*MockImplementation) UpdateAllowedAddresses

func (mi *MockImplementation) UpdateAllowedAddresses(toAdd lib.AddressSet, toDelete lib.AddressSet) error

type Msg

type Msg struct {
	Bytes json.RawMessage
	Err   error
}

type UpdateCall

type UpdateCall struct {
	ToAdd    lib.AddressSet
	ToDelete lib.AddressSet
}

Jump to

Keyboard shortcuts

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