mocks

package
v1.0.0-a2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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 ARP

type ARP struct {
	mock.Mock
}

ARP is an autogenerated mock type for the ARP type

func NewARP

func NewARP(t mockConstructorTestingTNewARP) *ARP

NewARP creates a new instance of ARP. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ARP) Count

func (_m *ARP) Count(count uint)

Count provides a mock function with given fields: count

func (*ARP) Present

func (_m *ARP) Present(ctx context.Context, ifs neighbors.Interfaces, state neighbors.State, addrStates neighbors.HardwareAddrStates) error

Present provides a mock function with given fields: ctx, ifs, state, addrStates

type ARPing

type ARPing struct {
	mock.Mock
}

ARPing is an autogenerated mock type for the ARPing type

func NewARPing

func NewARPing(t mockConstructorTestingTNewARPing) *ARPing

NewARPing creates a new instance of ARPing. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ARPing) Count

func (_m *ARPing) Count(count uint)

Count provides a mock function with given fields: count

func (*ARPing) Ping

func (_m *ARPing) Ping(ctx context.Context, ifi string, hw string, ip string) (bool, error)

Ping provides a mock function with given fields: ctx, ifi, hw, ip

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState

func NewState(t mockConstructorTestingTNewState) *State

NewState creates a new instance of State. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*State) Changed

func (_m *State) Changed() bool

Changed provides a mock function with given fields:

func (*State) Present

func (_m *State) Present() bool

Present provides a mock function with given fields:

func (*State) Reset

func (_m *State) Reset()

Reset provides a mock function with given fields:

func (*State) Set

func (_m *State) Set(present bool)

Set provides a mock function with given fields: present

Jump to

Keyboard shortcuts

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