testutil

package
v0.14.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureIPv6 added in v0.10.0

func EnsureIPv6(t *testing.T)

EnsureIPv6 skips the test if the system does not have IPv6 connectivity.

Types

type MockResolver

type MockResolver struct {
	mock.Mock
}

MockResolver is a mock implementation of Resolver.

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