mocks

package
v1.44.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_nswrapper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNS

type MockNS struct {
	// contains filtered or unexported fields
}

MockNS is a mock of NS interface.

func NewMockNS

func NewMockNS(ctrl *gomock.Controller) *MockNS

NewMockNS creates a new mock instance.

func (*MockNS) EXPECT

func (m *MockNS) EXPECT() *MockNSMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNS) GetNS

func (m *MockNS) GetNS(nspath string) (ns.NetNS, error)

GetNS mocks base method.

func (*MockNS) WithNetNSPath

func (m *MockNS) WithNetNSPath(nspath string, toRun func(ns.NetNS) error) error

WithNetNSPath mocks base method.

type MockNSMockRecorder

type MockNSMockRecorder struct {
	// contains filtered or unexported fields
}

MockNSMockRecorder is the mock recorder for MockNS.

func (*MockNSMockRecorder) GetNS

func (mr *MockNSMockRecorder) GetNS(nspath interface{}) *gomock.Call

GetNS indicates an expected call of GetNS.

func (*MockNSMockRecorder) WithNetNSPath

func (mr *MockNSMockRecorder) WithNetNSPath(nspath, toRun interface{}) *gomock.Call

WithNetNSPath indicates an expected call of WithNetNSPath.

Jump to

Keyboard shortcuts

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