mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHCPConfig

type MockHCPConfig struct {
	mock.Mock
}

MockHCPConfig is an autogenerated mock type for the HCPConfig type

func NewMockHCPConfig

func NewMockHCPConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHCPConfig

NewMockHCPConfig creates a new instance of MockHCPConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockHCPConfig) APIAddress

func (_m *MockHCPConfig) APIAddress() string

APIAddress provides a mock function with no fields

func (*MockHCPConfig) APITLSConfig

func (_m *MockHCPConfig) APITLSConfig() *tls.Config

APITLSConfig provides a mock function with no fields

func (*MockHCPConfig) EXPECT

func (_m *MockHCPConfig) EXPECT() *MockHCPConfig_Expecter

func (*MockHCPConfig) Logout

func (_m *MockHCPConfig) Logout() error

Logout provides a mock function with no fields

func (*MockHCPConfig) PortalURL

func (_m *MockHCPConfig) PortalURL() *url.URL

PortalURL provides a mock function with no fields

func (*MockHCPConfig) Profile

func (_m *MockHCPConfig) Profile() *profile.UserProfile

Profile provides a mock function with no fields

func (*MockHCPConfig) SCADAAddress

func (_m *MockHCPConfig) SCADAAddress() string

SCADAAddress provides a mock function with no fields

func (*MockHCPConfig) SCADATLSConfig

func (_m *MockHCPConfig) SCADATLSConfig() *tls.Config

SCADATLSConfig provides a mock function with no fields

func (*MockHCPConfig) Token

func (_m *MockHCPConfig) Token() (*oauth2.Token, error)

Token provides a mock function with no fields

type MockHCPConfig_APIAddress_Call

type MockHCPConfig_APIAddress_Call struct {
	*mock.Call
}

MockHCPConfig_APIAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'APIAddress'

func (*MockHCPConfig_APIAddress_Call) Return

func (*MockHCPConfig_APIAddress_Call) Run

func (*MockHCPConfig_APIAddress_Call) RunAndReturn

type MockHCPConfig_APITLSConfig_Call

type MockHCPConfig_APITLSConfig_Call struct {
	*mock.Call
}

MockHCPConfig_APITLSConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'APITLSConfig'

func (*MockHCPConfig_APITLSConfig_Call) Return

func (*MockHCPConfig_APITLSConfig_Call) Run

func (*MockHCPConfig_APITLSConfig_Call) RunAndReturn

type MockHCPConfig_Expecter

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

func (*MockHCPConfig_Expecter) APIAddress

APIAddress is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) APITLSConfig

APITLSConfig is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) Logout

Logout is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) PortalURL

PortalURL is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) Profile

Profile is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) SCADAAddress

SCADAAddress is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) SCADATLSConfig

SCADATLSConfig is a helper method to define mock.On call

func (*MockHCPConfig_Expecter) Token

Token is a helper method to define mock.On call

type MockHCPConfig_Logout_Call

type MockHCPConfig_Logout_Call struct {
	*mock.Call
}

MockHCPConfig_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'

func (*MockHCPConfig_Logout_Call) Return

func (*MockHCPConfig_Logout_Call) Run

func (*MockHCPConfig_Logout_Call) RunAndReturn

func (_c *MockHCPConfig_Logout_Call) RunAndReturn(run func() error) *MockHCPConfig_Logout_Call

type MockHCPConfig_PortalURL_Call

type MockHCPConfig_PortalURL_Call struct {
	*mock.Call
}

MockHCPConfig_PortalURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PortalURL'

func (*MockHCPConfig_PortalURL_Call) Return

func (*MockHCPConfig_PortalURL_Call) Run

func (*MockHCPConfig_PortalURL_Call) RunAndReturn

func (_c *MockHCPConfig_PortalURL_Call) RunAndReturn(run func() *url.URL) *MockHCPConfig_PortalURL_Call

type MockHCPConfig_Profile_Call

type MockHCPConfig_Profile_Call struct {
	*mock.Call
}

MockHCPConfig_Profile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Profile'

func (*MockHCPConfig_Profile_Call) Return

func (*MockHCPConfig_Profile_Call) Run

func (*MockHCPConfig_Profile_Call) RunAndReturn

type MockHCPConfig_SCADAAddress_Call

type MockHCPConfig_SCADAAddress_Call struct {
	*mock.Call
}

MockHCPConfig_SCADAAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SCADAAddress'

func (*MockHCPConfig_SCADAAddress_Call) Return

func (*MockHCPConfig_SCADAAddress_Call) Run

func (*MockHCPConfig_SCADAAddress_Call) RunAndReturn

type MockHCPConfig_SCADATLSConfig_Call

type MockHCPConfig_SCADATLSConfig_Call struct {
	*mock.Call
}

MockHCPConfig_SCADATLSConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SCADATLSConfig'

func (*MockHCPConfig_SCADATLSConfig_Call) Return

func (*MockHCPConfig_SCADATLSConfig_Call) Run

func (*MockHCPConfig_SCADATLSConfig_Call) RunAndReturn

type MockHCPConfig_Token_Call

type MockHCPConfig_Token_Call struct {
	*mock.Call
}

MockHCPConfig_Token_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Token'

func (*MockHCPConfig_Token_Call) Return

func (*MockHCPConfig_Token_Call) Run

func (*MockHCPConfig_Token_Call) RunAndReturn

func (_c *MockHCPConfig_Token_Call) RunAndReturn(run func() (*oauth2.Token, error)) *MockHCPConfig_Token_Call

Jump to

Keyboard shortcuts

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