mocking

package
v0.0.0-...-507ffb6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mocking contains mocking data structures and serves only for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestAddr

type TestAddr struct {
	// Addr is the address.
	Addr string
	// NetworkName is the network.
	NetworkName string
}

TestAddr is a test implementation of net.Addr. It's exposed so other tests can use it overriding DefaultInterfaceOps to increase coverage where we need data from the underlying OS.

func (TestAddr) Network

func (a TestAddr) Network() string

Network returns the network.

func (TestAddr) String

func (a TestAddr) String() string

String returns the address.

Jump to

Keyboard shortcuts

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