testing

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIPAMResult

func GenerateIPAMResult(cniVersion string, ipConfig []string, routeConfig []string, dnsConfig []string) *current.Result

Types

type MockIPAMDriver

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

MockIPAMDriver is a mock of IPAMDriver interface

func NewMockIPAMDriver

func NewMockIPAMDriver(ctrl *gomock.Controller) *MockIPAMDriver

NewMockIPAMDriver creates a new mock instance

func (*MockIPAMDriver) Add

func (m *MockIPAMDriver) Add(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, *ipam.IPAMResult, error)

Add mocks base method

func (*MockIPAMDriver) Check

func (m *MockIPAMDriver) Check(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, error)

Check mocks base method

func (*MockIPAMDriver) Del

func (m *MockIPAMDriver) Del(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, error)

Del mocks base method

func (*MockIPAMDriver) EXPECT

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

type MockIPAMDriverMockRecorder

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

MockIPAMDriverMockRecorder is the mock recorder for MockIPAMDriver

func (*MockIPAMDriverMockRecorder) Add

func (mr *MockIPAMDriverMockRecorder) Add(arg0, arg1, arg2 interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockIPAMDriverMockRecorder) Check

func (mr *MockIPAMDriverMockRecorder) Check(arg0, arg1, arg2 interface{}) *gomock.Call

Check indicates an expected call of Check

func (*MockIPAMDriverMockRecorder) Del

func (mr *MockIPAMDriverMockRecorder) Del(arg0, arg1, arg2 interface{}) *gomock.Call

Del indicates an expected call of Del

Jump to

Keyboard shortcuts

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