testutil

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResolver

type MockResolver struct {
	mock.Mock
}

MockResolver is a mock implementation of Resolver.

func (*MockResolver) LookupHost

func (m *MockResolver) LookupHost(ctx context.Context, host string) ([]string, error)

func (*MockResolver) LookupNetIP

func (m *MockResolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error)

Jump to

Keyboard shortcuts

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