mocks

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCanceledRequestHandler

type MockCanceledRequestHandler struct {
	mock.Mock
}

MockCanceledRequestHandler is an autogenerated mock type for the CanceledRequestHandler type

func NewMockCanceledRequestHandler

func NewMockCanceledRequestHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCanceledRequestHandler

NewMockCanceledRequestHandler creates a new instance of MockCanceledRequestHandler. 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 (*MockCanceledRequestHandler) EXPECT

func (*MockCanceledRequestHandler) Execute

func (_m *MockCanceledRequestHandler) Execute(clientID string, requestID string, request ocpp.Request, err *ocpp.Error)

Execute provides a mock function with given fields: clientID, requestID, request, err

type MockCanceledRequestHandler_Execute_Call

type MockCanceledRequestHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockCanceledRequestHandler_Execute_Call) Return

func (*MockCanceledRequestHandler_Execute_Call) Run

func (*MockCanceledRequestHandler_Execute_Call) RunAndReturn

type MockCanceledRequestHandler_Expecter

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

func (*MockCanceledRequestHandler_Expecter) Execute

func (_e *MockCanceledRequestHandler_Expecter) Execute(clientID interface{}, requestID interface{}, request interface{}, err interface{}) *MockCanceledRequestHandler_Execute_Call

Execute is a helper method to define mock.On call

  • clientID string
  • requestID string
  • request ocpp.Request
  • err *ocpp.Error

type MockClientDispatcher

type MockClientDispatcher struct {
	mock.Mock
}

MockClientDispatcher is an autogenerated mock type for the ClientDispatcher type

func NewMockClientDispatcher

func NewMockClientDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientDispatcher

NewMockClientDispatcher creates a new instance of MockClientDispatcher. 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 (*MockClientDispatcher) CompleteRequest

func (_m *MockClientDispatcher) CompleteRequest(requestID string)

CompleteRequest provides a mock function with given fields: requestID

func (*MockClientDispatcher) EXPECT

func (*MockClientDispatcher) IsPaused

func (_m *MockClientDispatcher) IsPaused() bool

IsPaused provides a mock function with no fields

func (*MockClientDispatcher) IsRunning

func (_m *MockClientDispatcher) IsRunning() bool

IsRunning provides a mock function with no fields

func (*MockClientDispatcher) Pause

func (_m *MockClientDispatcher) Pause()

Pause provides a mock function with no fields

func (*MockClientDispatcher) Resume

func (_m *MockClientDispatcher) Resume()

Resume provides a mock function with no fields

func (*MockClientDispatcher) SendRequest

func (_m *MockClientDispatcher) SendRequest(req ocppj.RequestBundle) error

SendRequest provides a mock function with given fields: req

func (*MockClientDispatcher) SetNetworkClient

func (_m *MockClientDispatcher) SetNetworkClient(client ws.WsClient)

SetNetworkClient provides a mock function with given fields: client

func (*MockClientDispatcher) SetOnRequestCanceled

func (_m *MockClientDispatcher) SetOnRequestCanceled(cb func(string, ocpp.Request, *ocpp.Error))

SetOnRequestCanceled provides a mock function with given fields: cb

func (*MockClientDispatcher) SetPendingRequestState

func (_m *MockClientDispatcher) SetPendingRequestState(stateHandler ocppj.ClientState)

SetPendingRequestState provides a mock function with given fields: stateHandler

func (*MockClientDispatcher) SetTimeout

func (_m *MockClientDispatcher) SetTimeout(timeout time.Duration)

SetTimeout provides a mock function with given fields: timeout

func (*MockClientDispatcher) Start

func (_m *MockClientDispatcher) Start()

Start provides a mock function with no fields

func (*MockClientDispatcher) Stop

func (_m *MockClientDispatcher) Stop()

Stop provides a mock function with no fields

type MockClientDispatcher_CompleteRequest_Call

type MockClientDispatcher_CompleteRequest_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_CompleteRequest_Call) Return

func (*MockClientDispatcher_CompleteRequest_Call) Run

func (*MockClientDispatcher_CompleteRequest_Call) RunAndReturn

type MockClientDispatcher_Expecter

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

func (*MockClientDispatcher_Expecter) CompleteRequest

func (_e *MockClientDispatcher_Expecter) CompleteRequest(requestID interface{}) *MockClientDispatcher_CompleteRequest_Call

CompleteRequest is a helper method to define mock.On call

  • requestID string

func (*MockClientDispatcher_Expecter) IsPaused

IsPaused is a helper method to define mock.On call

func (*MockClientDispatcher_Expecter) IsRunning

IsRunning is a helper method to define mock.On call

func (*MockClientDispatcher_Expecter) Pause

Pause is a helper method to define mock.On call

func (*MockClientDispatcher_Expecter) Resume

Resume is a helper method to define mock.On call

func (*MockClientDispatcher_Expecter) SendRequest

func (_e *MockClientDispatcher_Expecter) SendRequest(req interface{}) *MockClientDispatcher_SendRequest_Call

SendRequest is a helper method to define mock.On call

  • req ocppj.RequestBundle

func (*MockClientDispatcher_Expecter) SetNetworkClient

func (_e *MockClientDispatcher_Expecter) SetNetworkClient(client interface{}) *MockClientDispatcher_SetNetworkClient_Call

SetNetworkClient is a helper method to define mock.On call

  • client ws.WsClient

func (*MockClientDispatcher_Expecter) SetOnRequestCanceled

func (_e *MockClientDispatcher_Expecter) SetOnRequestCanceled(cb interface{}) *MockClientDispatcher_SetOnRequestCanceled_Call

SetOnRequestCanceled is a helper method to define mock.On call

  • cb func(string , ocpp.Request , *ocpp.Error)

func (*MockClientDispatcher_Expecter) SetPendingRequestState

func (_e *MockClientDispatcher_Expecter) SetPendingRequestState(stateHandler interface{}) *MockClientDispatcher_SetPendingRequestState_Call

SetPendingRequestState is a helper method to define mock.On call

  • stateHandler ocppj.ClientState

func (*MockClientDispatcher_Expecter) SetTimeout

func (_e *MockClientDispatcher_Expecter) SetTimeout(timeout interface{}) *MockClientDispatcher_SetTimeout_Call

SetTimeout is a helper method to define mock.On call

  • timeout time.Duration

func (*MockClientDispatcher_Expecter) Start

Start is a helper method to define mock.On call

func (*MockClientDispatcher_Expecter) Stop

Stop is a helper method to define mock.On call

type MockClientDispatcher_IsPaused_Call

type MockClientDispatcher_IsPaused_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_IsPaused_Call) Return

func (*MockClientDispatcher_IsPaused_Call) Run

func (*MockClientDispatcher_IsPaused_Call) RunAndReturn

type MockClientDispatcher_IsRunning_Call

type MockClientDispatcher_IsRunning_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_IsRunning_Call) Return

func (*MockClientDispatcher_IsRunning_Call) Run

func (*MockClientDispatcher_IsRunning_Call) RunAndReturn

type MockClientDispatcher_Pause_Call

type MockClientDispatcher_Pause_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_Pause_Call) Return

func (*MockClientDispatcher_Pause_Call) Run

func (*MockClientDispatcher_Pause_Call) RunAndReturn

type MockClientDispatcher_Resume_Call

type MockClientDispatcher_Resume_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_Resume_Call) Return

func (*MockClientDispatcher_Resume_Call) Run

func (*MockClientDispatcher_Resume_Call) RunAndReturn

type MockClientDispatcher_SendRequest_Call

type MockClientDispatcher_SendRequest_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_SendRequest_Call) Return

func (*MockClientDispatcher_SendRequest_Call) Run

func (*MockClientDispatcher_SendRequest_Call) RunAndReturn

type MockClientDispatcher_SetNetworkClient_Call

type MockClientDispatcher_SetNetworkClient_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_SetNetworkClient_Call) Return

func (*MockClientDispatcher_SetNetworkClient_Call) Run

func (*MockClientDispatcher_SetNetworkClient_Call) RunAndReturn

type MockClientDispatcher_SetOnRequestCanceled_Call

type MockClientDispatcher_SetOnRequestCanceled_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_SetOnRequestCanceled_Call) Return

func (*MockClientDispatcher_SetOnRequestCanceled_Call) Run

func (*MockClientDispatcher_SetOnRequestCanceled_Call) RunAndReturn

type MockClientDispatcher_SetPendingRequestState_Call

type MockClientDispatcher_SetPendingRequestState_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_SetPendingRequestState_Call) Return

func (*MockClientDispatcher_SetPendingRequestState_Call) Run

func (*MockClientDispatcher_SetPendingRequestState_Call) RunAndReturn

type MockClientDispatcher_SetTimeout_Call

type MockClientDispatcher_SetTimeout_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_SetTimeout_Call) Return

func (*MockClientDispatcher_SetTimeout_Call) Run

func (*MockClientDispatcher_SetTimeout_Call) RunAndReturn

type MockClientDispatcher_Start_Call

type MockClientDispatcher_Start_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_Start_Call) Return

func (*MockClientDispatcher_Start_Call) Run

func (*MockClientDispatcher_Start_Call) RunAndReturn

type MockClientDispatcher_Stop_Call

type MockClientDispatcher_Stop_Call struct {
	*mock.Call
}

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

func (*MockClientDispatcher_Stop_Call) Return

func (*MockClientDispatcher_Stop_Call) Run

func (*MockClientDispatcher_Stop_Call) RunAndReturn

func (_c *MockClientDispatcher_Stop_Call) RunAndReturn(run func()) *MockClientDispatcher_Stop_Call

type MockClientHandler

type MockClientHandler struct {
	mock.Mock
}

MockClientHandler is an autogenerated mock type for the ClientHandler type

func NewMockClientHandler

func NewMockClientHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientHandler

NewMockClientHandler creates a new instance of MockClientHandler. 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 (*MockClientHandler) EXPECT

func (*MockClientHandler) Execute

func (_m *MockClientHandler) Execute(client ws.Channel)

Execute provides a mock function with given fields: client

type MockClientHandler_Execute_Call

type MockClientHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockClientHandler_Execute_Call) Return

func (*MockClientHandler_Execute_Call) Run

func (*MockClientHandler_Execute_Call) RunAndReturn

type MockClientHandler_Expecter

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

func (*MockClientHandler_Expecter) Execute

func (_e *MockClientHandler_Expecter) Execute(client interface{}) *MockClientHandler_Execute_Call

Execute is a helper method to define mock.On call

  • client ws.Channel

type MockClientState

type MockClientState struct {
	mock.Mock
}

MockClientState is an autogenerated mock type for the ClientState type

func NewMockClientState

func NewMockClientState(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClientState

NewMockClientState creates a new instance of MockClientState. 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 (*MockClientState) AddPendingRequest

func (_m *MockClientState) AddPendingRequest(requestID string, req ocpp.Request)

AddPendingRequest provides a mock function with given fields: requestID, req

func (*MockClientState) ClearPendingRequests

func (_m *MockClientState) ClearPendingRequests()

ClearPendingRequests provides a mock function with no fields

func (*MockClientState) DeletePendingRequest

func (_m *MockClientState) DeletePendingRequest(requestID string)

DeletePendingRequest provides a mock function with given fields: requestID

func (*MockClientState) EXPECT

func (*MockClientState) GetPendingRequest

func (_m *MockClientState) GetPendingRequest(requestID string) (ocpp.Request, bool)

GetPendingRequest provides a mock function with given fields: requestID

func (*MockClientState) HasPendingRequest

func (_m *MockClientState) HasPendingRequest() bool

HasPendingRequest provides a mock function with no fields

type MockClientState_AddPendingRequest_Call

type MockClientState_AddPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockClientState_AddPendingRequest_Call) Return

func (*MockClientState_AddPendingRequest_Call) Run

func (*MockClientState_AddPendingRequest_Call) RunAndReturn

type MockClientState_ClearPendingRequests_Call

type MockClientState_ClearPendingRequests_Call struct {
	*mock.Call
}

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

func (*MockClientState_ClearPendingRequests_Call) Return

func (*MockClientState_ClearPendingRequests_Call) Run

func (*MockClientState_ClearPendingRequests_Call) RunAndReturn

type MockClientState_DeletePendingRequest_Call

type MockClientState_DeletePendingRequest_Call struct {
	*mock.Call
}

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

func (*MockClientState_DeletePendingRequest_Call) Return

func (*MockClientState_DeletePendingRequest_Call) Run

func (*MockClientState_DeletePendingRequest_Call) RunAndReturn

type MockClientState_Expecter

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

func (*MockClientState_Expecter) AddPendingRequest

func (_e *MockClientState_Expecter) AddPendingRequest(requestID interface{}, req interface{}) *MockClientState_AddPendingRequest_Call

AddPendingRequest is a helper method to define mock.On call

  • requestID string
  • req ocpp.Request

func (*MockClientState_Expecter) ClearPendingRequests

ClearPendingRequests is a helper method to define mock.On call

func (*MockClientState_Expecter) DeletePendingRequest

func (_e *MockClientState_Expecter) DeletePendingRequest(requestID interface{}) *MockClientState_DeletePendingRequest_Call

DeletePendingRequest is a helper method to define mock.On call

  • requestID string

func (*MockClientState_Expecter) GetPendingRequest

func (_e *MockClientState_Expecter) GetPendingRequest(requestID interface{}) *MockClientState_GetPendingRequest_Call

GetPendingRequest is a helper method to define mock.On call

  • requestID string

func (*MockClientState_Expecter) HasPendingRequest

HasPendingRequest is a helper method to define mock.On call

type MockClientState_GetPendingRequest_Call

type MockClientState_GetPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockClientState_GetPendingRequest_Call) Return

func (*MockClientState_GetPendingRequest_Call) Run

func (*MockClientState_GetPendingRequest_Call) RunAndReturn

type MockClientState_HasPendingRequest_Call

type MockClientState_HasPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockClientState_HasPendingRequest_Call) Return

func (*MockClientState_HasPendingRequest_Call) Run

func (*MockClientState_HasPendingRequest_Call) RunAndReturn

type MockErrorHandler

type MockErrorHandler struct {
	mock.Mock
}

MockErrorHandler is an autogenerated mock type for the ErrorHandler type

func NewMockErrorHandler

func NewMockErrorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockErrorHandler

NewMockErrorHandler creates a new instance of MockErrorHandler. 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 (*MockErrorHandler) EXPECT

func (*MockErrorHandler) Execute

func (_m *MockErrorHandler) Execute(client ws.Channel, err *ocpp.Error, details interface{})

Execute provides a mock function with given fields: client, err, details

type MockErrorHandler_Execute_Call

type MockErrorHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockErrorHandler_Execute_Call) Return

func (*MockErrorHandler_Execute_Call) Run

func (_c *MockErrorHandler_Execute_Call) Run(run func(client ws.Channel, err *ocpp.Error, details interface{})) *MockErrorHandler_Execute_Call

func (*MockErrorHandler_Execute_Call) RunAndReturn

func (_c *MockErrorHandler_Execute_Call) RunAndReturn(run func(ws.Channel, *ocpp.Error, interface{})) *MockErrorHandler_Execute_Call

type MockErrorHandler_Expecter

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

func (*MockErrorHandler_Expecter) Execute

func (_e *MockErrorHandler_Expecter) Execute(client interface{}, err interface{}, details interface{}) *MockErrorHandler_Execute_Call

Execute is a helper method to define mock.On call

  • client ws.Channel
  • err *ocpp.Error
  • details interface{}

type MockInvalidMessageHook

type MockInvalidMessageHook struct {
	mock.Mock
}

MockInvalidMessageHook is an autogenerated mock type for the InvalidMessageHook type

func NewMockInvalidMessageHook

func NewMockInvalidMessageHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInvalidMessageHook

NewMockInvalidMessageHook creates a new instance of MockInvalidMessageHook. 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 (*MockInvalidMessageHook) EXPECT

func (*MockInvalidMessageHook) Execute

func (_m *MockInvalidMessageHook) Execute(client ws.Channel, err *ocpp.Error, rawJson string, parsedFields []interface{}) *ocpp.Error

Execute provides a mock function with given fields: client, err, rawJson, parsedFields

type MockInvalidMessageHook_Execute_Call

type MockInvalidMessageHook_Execute_Call struct {
	*mock.Call
}

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

func (*MockInvalidMessageHook_Execute_Call) Return

func (*MockInvalidMessageHook_Execute_Call) Run

func (_c *MockInvalidMessageHook_Execute_Call) Run(run func(client ws.Channel, err *ocpp.Error, rawJson string, parsedFields []interface{})) *MockInvalidMessageHook_Execute_Call

func (*MockInvalidMessageHook_Execute_Call) RunAndReturn

type MockInvalidMessageHook_Expecter

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

func (*MockInvalidMessageHook_Expecter) Execute

func (_e *MockInvalidMessageHook_Expecter) Execute(client interface{}, err interface{}, rawJson interface{}, parsedFields interface{}) *MockInvalidMessageHook_Execute_Call

Execute is a helper method to define mock.On call

  • client ws.Channel
  • err *ocpp.Error
  • rawJson string
  • parsedFields []interface{}

type MockMessage

type MockMessage struct {
	mock.Mock
}

MockMessage is an autogenerated mock type for the Message type

func NewMockMessage

func NewMockMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMessage

NewMockMessage creates a new instance of MockMessage. 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 (*MockMessage) EXPECT

func (_m *MockMessage) EXPECT() *MockMessage_Expecter

func (*MockMessage) GetMessageTypeId

func (_m *MockMessage) GetMessageTypeId() ocppj.MessageType

GetMessageTypeId provides a mock function with no fields

func (*MockMessage) GetUniqueId

func (_m *MockMessage) GetUniqueId() string

GetUniqueId provides a mock function with no fields

func (*MockMessage) MarshalJSON

func (_m *MockMessage) MarshalJSON() ([]byte, error)

MarshalJSON provides a mock function with no fields

type MockMessage_Expecter

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

func (*MockMessage_Expecter) GetMessageTypeId

GetMessageTypeId is a helper method to define mock.On call

func (*MockMessage_Expecter) GetUniqueId

GetUniqueId is a helper method to define mock.On call

func (*MockMessage_Expecter) MarshalJSON

MarshalJSON is a helper method to define mock.On call

type MockMessage_GetMessageTypeId_Call

type MockMessage_GetMessageTypeId_Call struct {
	*mock.Call
}

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

func (*MockMessage_GetMessageTypeId_Call) Return

func (*MockMessage_GetMessageTypeId_Call) Run

func (*MockMessage_GetMessageTypeId_Call) RunAndReturn

type MockMessage_GetUniqueId_Call

type MockMessage_GetUniqueId_Call struct {
	*mock.Call
}

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

func (*MockMessage_GetUniqueId_Call) Return

func (*MockMessage_GetUniqueId_Call) Run

func (*MockMessage_GetUniqueId_Call) RunAndReturn

type MockMessage_MarshalJSON_Call

type MockMessage_MarshalJSON_Call struct {
	*mock.Call
}

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

func (*MockMessage_MarshalJSON_Call) Return

func (*MockMessage_MarshalJSON_Call) Run

func (*MockMessage_MarshalJSON_Call) RunAndReturn

func (_c *MockMessage_MarshalJSON_Call) RunAndReturn(run func() ([]byte, error)) *MockMessage_MarshalJSON_Call

type MockRequestHandler

type MockRequestHandler struct {
	mock.Mock
}

MockRequestHandler is an autogenerated mock type for the RequestHandler type

func NewMockRequestHandler

func NewMockRequestHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRequestHandler

NewMockRequestHandler creates a new instance of MockRequestHandler. 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 (*MockRequestHandler) EXPECT

func (*MockRequestHandler) Execute

func (_m *MockRequestHandler) Execute(client ws.Channel, request ocpp.Request, requestId string, action string)

Execute provides a mock function with given fields: client, request, requestId, action

type MockRequestHandler_Execute_Call

type MockRequestHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockRequestHandler_Execute_Call) Return

func (*MockRequestHandler_Execute_Call) Run

func (_c *MockRequestHandler_Execute_Call) Run(run func(client ws.Channel, request ocpp.Request, requestId string, action string)) *MockRequestHandler_Execute_Call

func (*MockRequestHandler_Execute_Call) RunAndReturn

type MockRequestHandler_Expecter

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

func (*MockRequestHandler_Expecter) Execute

func (_e *MockRequestHandler_Expecter) Execute(client interface{}, request interface{}, requestId interface{}, action interface{}) *MockRequestHandler_Execute_Call

Execute is a helper method to define mock.On call

  • client ws.Channel
  • request ocpp.Request
  • requestId string
  • action string

type MockRequestQueue

type MockRequestQueue struct {
	mock.Mock
}

MockRequestQueue is an autogenerated mock type for the RequestQueue type

func NewMockRequestQueue

func NewMockRequestQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRequestQueue

NewMockRequestQueue creates a new instance of MockRequestQueue. 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 (*MockRequestQueue) EXPECT

func (*MockRequestQueue) Init

func (_m *MockRequestQueue) Init()

Init provides a mock function with no fields

func (*MockRequestQueue) IsEmpty

func (_m *MockRequestQueue) IsEmpty() bool

IsEmpty provides a mock function with no fields

func (*MockRequestQueue) IsFull

func (_m *MockRequestQueue) IsFull() bool

IsFull provides a mock function with no fields

func (*MockRequestQueue) Peek

func (_m *MockRequestQueue) Peek() interface{}

Peek provides a mock function with no fields

func (*MockRequestQueue) Pop

func (_m *MockRequestQueue) Pop() interface{}

Pop provides a mock function with no fields

func (*MockRequestQueue) Push

func (_m *MockRequestQueue) Push(element interface{}) error

Push provides a mock function with given fields: element

func (*MockRequestQueue) Size

func (_m *MockRequestQueue) Size() int

Size provides a mock function with no fields

type MockRequestQueue_Expecter

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

func (*MockRequestQueue_Expecter) Init

Init is a helper method to define mock.On call

func (*MockRequestQueue_Expecter) IsEmpty

IsEmpty is a helper method to define mock.On call

func (*MockRequestQueue_Expecter) IsFull

IsFull is a helper method to define mock.On call

func (*MockRequestQueue_Expecter) Peek

Peek is a helper method to define mock.On call

func (*MockRequestQueue_Expecter) Pop

Pop is a helper method to define mock.On call

func (*MockRequestQueue_Expecter) Push

func (_e *MockRequestQueue_Expecter) Push(element interface{}) *MockRequestQueue_Push_Call

Push is a helper method to define mock.On call

  • element interface{}

func (*MockRequestQueue_Expecter) Size

Size is a helper method to define mock.On call

type MockRequestQueue_Init_Call

type MockRequestQueue_Init_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_Init_Call) Return

func (*MockRequestQueue_Init_Call) Run

func (*MockRequestQueue_Init_Call) RunAndReturn

func (_c *MockRequestQueue_Init_Call) RunAndReturn(run func()) *MockRequestQueue_Init_Call

type MockRequestQueue_IsEmpty_Call

type MockRequestQueue_IsEmpty_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_IsEmpty_Call) Return

func (*MockRequestQueue_IsEmpty_Call) Run

func (*MockRequestQueue_IsEmpty_Call) RunAndReturn

type MockRequestQueue_IsFull_Call

type MockRequestQueue_IsFull_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_IsFull_Call) Return

func (*MockRequestQueue_IsFull_Call) Run

func (*MockRequestQueue_IsFull_Call) RunAndReturn

func (_c *MockRequestQueue_IsFull_Call) RunAndReturn(run func() bool) *MockRequestQueue_IsFull_Call

type MockRequestQueue_Peek_Call

type MockRequestQueue_Peek_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_Peek_Call) Return

func (_c *MockRequestQueue_Peek_Call) Return(_a0 interface{}) *MockRequestQueue_Peek_Call

func (*MockRequestQueue_Peek_Call) Run

func (*MockRequestQueue_Peek_Call) RunAndReturn

func (_c *MockRequestQueue_Peek_Call) RunAndReturn(run func() interface{}) *MockRequestQueue_Peek_Call

type MockRequestQueue_Pop_Call

type MockRequestQueue_Pop_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_Pop_Call) Return

func (_c *MockRequestQueue_Pop_Call) Return(_a0 interface{}) *MockRequestQueue_Pop_Call

func (*MockRequestQueue_Pop_Call) Run

func (*MockRequestQueue_Pop_Call) RunAndReturn

func (_c *MockRequestQueue_Pop_Call) RunAndReturn(run func() interface{}) *MockRequestQueue_Pop_Call

type MockRequestQueue_Push_Call

type MockRequestQueue_Push_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_Push_Call) Return

func (*MockRequestQueue_Push_Call) Run

func (_c *MockRequestQueue_Push_Call) Run(run func(element interface{})) *MockRequestQueue_Push_Call

func (*MockRequestQueue_Push_Call) RunAndReturn

func (_c *MockRequestQueue_Push_Call) RunAndReturn(run func(interface{}) error) *MockRequestQueue_Push_Call

type MockRequestQueue_Size_Call

type MockRequestQueue_Size_Call struct {
	*mock.Call
}

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

func (*MockRequestQueue_Size_Call) Return

func (*MockRequestQueue_Size_Call) Run

func (*MockRequestQueue_Size_Call) RunAndReturn

func (_c *MockRequestQueue_Size_Call) RunAndReturn(run func() int) *MockRequestQueue_Size_Call

type MockResponseHandler

type MockResponseHandler struct {
	mock.Mock
}

MockResponseHandler is an autogenerated mock type for the ResponseHandler type

func NewMockResponseHandler

func NewMockResponseHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResponseHandler

NewMockResponseHandler creates a new instance of MockResponseHandler. 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 (*MockResponseHandler) EXPECT

func (*MockResponseHandler) Execute

func (_m *MockResponseHandler) Execute(client ws.Channel, response ocpp.Response, requestId string)

Execute provides a mock function with given fields: client, response, requestId

type MockResponseHandler_Execute_Call

type MockResponseHandler_Execute_Call struct {
	*mock.Call
}

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

func (*MockResponseHandler_Execute_Call) Return

func (*MockResponseHandler_Execute_Call) Run

func (_c *MockResponseHandler_Execute_Call) Run(run func(client ws.Channel, response ocpp.Response, requestId string)) *MockResponseHandler_Execute_Call

func (*MockResponseHandler_Execute_Call) RunAndReturn

type MockResponseHandler_Expecter

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

func (*MockResponseHandler_Expecter) Execute

func (_e *MockResponseHandler_Expecter) Execute(client interface{}, response interface{}, requestId interface{}) *MockResponseHandler_Execute_Call

Execute is a helper method to define mock.On call

  • client ws.Channel
  • response ocpp.Response
  • requestId string

type MockServerDispatcher

type MockServerDispatcher struct {
	mock.Mock
}

MockServerDispatcher is an autogenerated mock type for the ServerDispatcher type

func NewMockServerDispatcher

func NewMockServerDispatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServerDispatcher

NewMockServerDispatcher creates a new instance of MockServerDispatcher. 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 (*MockServerDispatcher) CompleteRequest

func (_m *MockServerDispatcher) CompleteRequest(clientID string, requestID string)

CompleteRequest provides a mock function with given fields: clientID, requestID

func (*MockServerDispatcher) CreateClient

func (_m *MockServerDispatcher) CreateClient(clientID string)

CreateClient provides a mock function with given fields: clientID

func (*MockServerDispatcher) DeleteClient

func (_m *MockServerDispatcher) DeleteClient(clientID string)

DeleteClient provides a mock function with given fields: clientID

func (*MockServerDispatcher) EXPECT

func (*MockServerDispatcher) IsRunning

func (_m *MockServerDispatcher) IsRunning() bool

IsRunning provides a mock function with no fields

func (*MockServerDispatcher) SendRequest

func (_m *MockServerDispatcher) SendRequest(clientID string, req ocppj.RequestBundle) error

SendRequest provides a mock function with given fields: clientID, req

func (*MockServerDispatcher) SetNetworkServer

func (_m *MockServerDispatcher) SetNetworkServer(server ws.WsServer)

SetNetworkServer provides a mock function with given fields: server

func (*MockServerDispatcher) SetOnRequestCanceled

func (_m *MockServerDispatcher) SetOnRequestCanceled(cb ocppj.CanceledRequestHandler)

SetOnRequestCanceled provides a mock function with given fields: cb

func (*MockServerDispatcher) SetPendingRequestState

func (_m *MockServerDispatcher) SetPendingRequestState(stateHandler ocppj.ServerState)

SetPendingRequestState provides a mock function with given fields: stateHandler

func (*MockServerDispatcher) SetTimeout

func (_m *MockServerDispatcher) SetTimeout(timeout time.Duration)

SetTimeout provides a mock function with given fields: timeout

func (*MockServerDispatcher) Start

func (_m *MockServerDispatcher) Start()

Start provides a mock function with no fields

func (*MockServerDispatcher) Stop

func (_m *MockServerDispatcher) Stop()

Stop provides a mock function with no fields

type MockServerDispatcher_CompleteRequest_Call

type MockServerDispatcher_CompleteRequest_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_CompleteRequest_Call) Return

func (*MockServerDispatcher_CompleteRequest_Call) Run

func (*MockServerDispatcher_CompleteRequest_Call) RunAndReturn

type MockServerDispatcher_CreateClient_Call

type MockServerDispatcher_CreateClient_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_CreateClient_Call) Return

func (*MockServerDispatcher_CreateClient_Call) Run

func (*MockServerDispatcher_CreateClient_Call) RunAndReturn

type MockServerDispatcher_DeleteClient_Call

type MockServerDispatcher_DeleteClient_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_DeleteClient_Call) Return

func (*MockServerDispatcher_DeleteClient_Call) Run

func (*MockServerDispatcher_DeleteClient_Call) RunAndReturn

type MockServerDispatcher_Expecter

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

func (*MockServerDispatcher_Expecter) CompleteRequest

func (_e *MockServerDispatcher_Expecter) CompleteRequest(clientID interface{}, requestID interface{}) *MockServerDispatcher_CompleteRequest_Call

CompleteRequest is a helper method to define mock.On call

  • clientID string
  • requestID string

func (*MockServerDispatcher_Expecter) CreateClient

func (_e *MockServerDispatcher_Expecter) CreateClient(clientID interface{}) *MockServerDispatcher_CreateClient_Call

CreateClient is a helper method to define mock.On call

  • clientID string

func (*MockServerDispatcher_Expecter) DeleteClient

func (_e *MockServerDispatcher_Expecter) DeleteClient(clientID interface{}) *MockServerDispatcher_DeleteClient_Call

DeleteClient is a helper method to define mock.On call

  • clientID string

func (*MockServerDispatcher_Expecter) IsRunning

IsRunning is a helper method to define mock.On call

func (*MockServerDispatcher_Expecter) SendRequest

func (_e *MockServerDispatcher_Expecter) SendRequest(clientID interface{}, req interface{}) *MockServerDispatcher_SendRequest_Call

SendRequest is a helper method to define mock.On call

  • clientID string
  • req ocppj.RequestBundle

func (*MockServerDispatcher_Expecter) SetNetworkServer

func (_e *MockServerDispatcher_Expecter) SetNetworkServer(server interface{}) *MockServerDispatcher_SetNetworkServer_Call

SetNetworkServer is a helper method to define mock.On call

  • server ws.WsServer

func (*MockServerDispatcher_Expecter) SetOnRequestCanceled

func (_e *MockServerDispatcher_Expecter) SetOnRequestCanceled(cb interface{}) *MockServerDispatcher_SetOnRequestCanceled_Call

SetOnRequestCanceled is a helper method to define mock.On call

  • cb ocppj.CanceledRequestHandler

func (*MockServerDispatcher_Expecter) SetPendingRequestState

func (_e *MockServerDispatcher_Expecter) SetPendingRequestState(stateHandler interface{}) *MockServerDispatcher_SetPendingRequestState_Call

SetPendingRequestState is a helper method to define mock.On call

  • stateHandler ocppj.ServerState

func (*MockServerDispatcher_Expecter) SetTimeout

func (_e *MockServerDispatcher_Expecter) SetTimeout(timeout interface{}) *MockServerDispatcher_SetTimeout_Call

SetTimeout is a helper method to define mock.On call

  • timeout time.Duration

func (*MockServerDispatcher_Expecter) Start

Start is a helper method to define mock.On call

func (*MockServerDispatcher_Expecter) Stop

Stop is a helper method to define mock.On call

type MockServerDispatcher_IsRunning_Call

type MockServerDispatcher_IsRunning_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_IsRunning_Call) Return

func (*MockServerDispatcher_IsRunning_Call) Run

func (*MockServerDispatcher_IsRunning_Call) RunAndReturn

type MockServerDispatcher_SendRequest_Call

type MockServerDispatcher_SendRequest_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_SendRequest_Call) Return

func (*MockServerDispatcher_SendRequest_Call) Run

func (*MockServerDispatcher_SendRequest_Call) RunAndReturn

type MockServerDispatcher_SetNetworkServer_Call

type MockServerDispatcher_SetNetworkServer_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_SetNetworkServer_Call) Return

func (*MockServerDispatcher_SetNetworkServer_Call) Run

func (*MockServerDispatcher_SetNetworkServer_Call) RunAndReturn

type MockServerDispatcher_SetOnRequestCanceled_Call

type MockServerDispatcher_SetOnRequestCanceled_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_SetOnRequestCanceled_Call) Return

func (*MockServerDispatcher_SetOnRequestCanceled_Call) Run

func (*MockServerDispatcher_SetOnRequestCanceled_Call) RunAndReturn

type MockServerDispatcher_SetPendingRequestState_Call

type MockServerDispatcher_SetPendingRequestState_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_SetPendingRequestState_Call) Return

func (*MockServerDispatcher_SetPendingRequestState_Call) Run

func (*MockServerDispatcher_SetPendingRequestState_Call) RunAndReturn

type MockServerDispatcher_SetTimeout_Call

type MockServerDispatcher_SetTimeout_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_SetTimeout_Call) Return

func (*MockServerDispatcher_SetTimeout_Call) Run

func (*MockServerDispatcher_SetTimeout_Call) RunAndReturn

type MockServerDispatcher_Start_Call

type MockServerDispatcher_Start_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_Start_Call) Return

func (*MockServerDispatcher_Start_Call) Run

func (*MockServerDispatcher_Start_Call) RunAndReturn

type MockServerDispatcher_Stop_Call

type MockServerDispatcher_Stop_Call struct {
	*mock.Call
}

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

func (*MockServerDispatcher_Stop_Call) Return

func (*MockServerDispatcher_Stop_Call) Run

func (*MockServerDispatcher_Stop_Call) RunAndReturn

func (_c *MockServerDispatcher_Stop_Call) RunAndReturn(run func()) *MockServerDispatcher_Stop_Call

type MockServerQueueMap

type MockServerQueueMap struct {
	mock.Mock
}

MockServerQueueMap is an autogenerated mock type for the ServerQueueMap type

func NewMockServerQueueMap

func NewMockServerQueueMap(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServerQueueMap

NewMockServerQueueMap creates a new instance of MockServerQueueMap. 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 (*MockServerQueueMap) Add

func (_m *MockServerQueueMap) Add(clientID string, queue ocppj.RequestQueue)

Add provides a mock function with given fields: clientID, queue

func (*MockServerQueueMap) EXPECT

func (*MockServerQueueMap) Get

func (_m *MockServerQueueMap) Get(clientID string) (ocppj.RequestQueue, bool)

Get provides a mock function with given fields: clientID

func (*MockServerQueueMap) GetOrCreate

func (_m *MockServerQueueMap) GetOrCreate(clientID string) ocppj.RequestQueue

GetOrCreate provides a mock function with given fields: clientID

func (*MockServerQueueMap) Init

func (_m *MockServerQueueMap) Init()

Init provides a mock function with no fields

func (*MockServerQueueMap) Remove

func (_m *MockServerQueueMap) Remove(clientID string)

Remove provides a mock function with given fields: clientID

type MockServerQueueMap_Add_Call

type MockServerQueueMap_Add_Call struct {
	*mock.Call
}

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

func (*MockServerQueueMap_Add_Call) Return

func (*MockServerQueueMap_Add_Call) Run

func (*MockServerQueueMap_Add_Call) RunAndReturn

type MockServerQueueMap_Expecter

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

func (*MockServerQueueMap_Expecter) Add

func (_e *MockServerQueueMap_Expecter) Add(clientID interface{}, queue interface{}) *MockServerQueueMap_Add_Call

Add is a helper method to define mock.On call

  • clientID string
  • queue ocppj.RequestQueue

func (*MockServerQueueMap_Expecter) Get

func (_e *MockServerQueueMap_Expecter) Get(clientID interface{}) *MockServerQueueMap_Get_Call

Get is a helper method to define mock.On call

  • clientID string

func (*MockServerQueueMap_Expecter) GetOrCreate

func (_e *MockServerQueueMap_Expecter) GetOrCreate(clientID interface{}) *MockServerQueueMap_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • clientID string

func (*MockServerQueueMap_Expecter) Init

Init is a helper method to define mock.On call

func (*MockServerQueueMap_Expecter) Remove

func (_e *MockServerQueueMap_Expecter) Remove(clientID interface{}) *MockServerQueueMap_Remove_Call

Remove is a helper method to define mock.On call

  • clientID string

type MockServerQueueMap_GetOrCreate_Call

type MockServerQueueMap_GetOrCreate_Call struct {
	*mock.Call
}

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

func (*MockServerQueueMap_GetOrCreate_Call) Return

func (*MockServerQueueMap_GetOrCreate_Call) Run

func (*MockServerQueueMap_GetOrCreate_Call) RunAndReturn

type MockServerQueueMap_Get_Call

type MockServerQueueMap_Get_Call struct {
	*mock.Call
}

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

func (*MockServerQueueMap_Get_Call) Return

func (*MockServerQueueMap_Get_Call) Run

func (_c *MockServerQueueMap_Get_Call) Run(run func(clientID string)) *MockServerQueueMap_Get_Call

func (*MockServerQueueMap_Get_Call) RunAndReturn

type MockServerQueueMap_Init_Call

type MockServerQueueMap_Init_Call struct {
	*mock.Call
}

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

func (*MockServerQueueMap_Init_Call) Return

func (*MockServerQueueMap_Init_Call) Run

func (*MockServerQueueMap_Init_Call) RunAndReturn

func (_c *MockServerQueueMap_Init_Call) RunAndReturn(run func()) *MockServerQueueMap_Init_Call

type MockServerQueueMap_Remove_Call

type MockServerQueueMap_Remove_Call struct {
	*mock.Call
}

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

func (*MockServerQueueMap_Remove_Call) Return

func (*MockServerQueueMap_Remove_Call) Run

func (*MockServerQueueMap_Remove_Call) RunAndReturn

type MockServerState

type MockServerState struct {
	mock.Mock
}

MockServerState is an autogenerated mock type for the ServerState type

func NewMockServerState

func NewMockServerState(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockServerState

NewMockServerState creates a new instance of MockServerState. 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 (*MockServerState) AddPendingRequest

func (_m *MockServerState) AddPendingRequest(clientID string, requestID string, req ocpp.Request)

AddPendingRequest provides a mock function with given fields: clientID, requestID, req

func (*MockServerState) ClearAllPendingRequests

func (_m *MockServerState) ClearAllPendingRequests()

ClearAllPendingRequests provides a mock function with no fields

func (*MockServerState) ClearClientPendingRequest

func (_m *MockServerState) ClearClientPendingRequest(clientID string)

ClearClientPendingRequest provides a mock function with given fields: clientID

func (*MockServerState) DeletePendingRequest

func (_m *MockServerState) DeletePendingRequest(clientID string, requestID string)

DeletePendingRequest provides a mock function with given fields: clientID, requestID

func (*MockServerState) EXPECT

func (*MockServerState) GetClientState

func (_m *MockServerState) GetClientState(clientID string) ocppj.ClientState

GetClientState provides a mock function with given fields: clientID

func (*MockServerState) HasPendingRequest

func (_m *MockServerState) HasPendingRequest(clientID string) bool

HasPendingRequest provides a mock function with given fields: clientID

func (*MockServerState) HasPendingRequests

func (_m *MockServerState) HasPendingRequests() bool

HasPendingRequests provides a mock function with no fields

type MockServerState_AddPendingRequest_Call

type MockServerState_AddPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockServerState_AddPendingRequest_Call) Return

func (*MockServerState_AddPendingRequest_Call) Run

func (*MockServerState_AddPendingRequest_Call) RunAndReturn

type MockServerState_ClearAllPendingRequests_Call

type MockServerState_ClearAllPendingRequests_Call struct {
	*mock.Call
}

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

func (*MockServerState_ClearAllPendingRequests_Call) Return

func (*MockServerState_ClearAllPendingRequests_Call) Run

func (*MockServerState_ClearAllPendingRequests_Call) RunAndReturn

type MockServerState_ClearClientPendingRequest_Call

type MockServerState_ClearClientPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockServerState_ClearClientPendingRequest_Call) Return

func (*MockServerState_ClearClientPendingRequest_Call) Run

func (*MockServerState_ClearClientPendingRequest_Call) RunAndReturn

type MockServerState_DeletePendingRequest_Call

type MockServerState_DeletePendingRequest_Call struct {
	*mock.Call
}

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

func (*MockServerState_DeletePendingRequest_Call) Return

func (*MockServerState_DeletePendingRequest_Call) Run

func (*MockServerState_DeletePendingRequest_Call) RunAndReturn

type MockServerState_Expecter

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

func (*MockServerState_Expecter) AddPendingRequest

func (_e *MockServerState_Expecter) AddPendingRequest(clientID interface{}, requestID interface{}, req interface{}) *MockServerState_AddPendingRequest_Call

AddPendingRequest is a helper method to define mock.On call

  • clientID string
  • requestID string
  • req ocpp.Request

func (*MockServerState_Expecter) ClearAllPendingRequests

ClearAllPendingRequests is a helper method to define mock.On call

func (*MockServerState_Expecter) ClearClientPendingRequest

func (_e *MockServerState_Expecter) ClearClientPendingRequest(clientID interface{}) *MockServerState_ClearClientPendingRequest_Call

ClearClientPendingRequest is a helper method to define mock.On call

  • clientID string

func (*MockServerState_Expecter) DeletePendingRequest

func (_e *MockServerState_Expecter) DeletePendingRequest(clientID interface{}, requestID interface{}) *MockServerState_DeletePendingRequest_Call

DeletePendingRequest is a helper method to define mock.On call

  • clientID string
  • requestID string

func (*MockServerState_Expecter) GetClientState

func (_e *MockServerState_Expecter) GetClientState(clientID interface{}) *MockServerState_GetClientState_Call

GetClientState is a helper method to define mock.On call

  • clientID string

func (*MockServerState_Expecter) HasPendingRequest

func (_e *MockServerState_Expecter) HasPendingRequest(clientID interface{}) *MockServerState_HasPendingRequest_Call

HasPendingRequest is a helper method to define mock.On call

  • clientID string

func (*MockServerState_Expecter) HasPendingRequests

HasPendingRequests is a helper method to define mock.On call

type MockServerState_GetClientState_Call

type MockServerState_GetClientState_Call struct {
	*mock.Call
}

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

func (*MockServerState_GetClientState_Call) Return

func (*MockServerState_GetClientState_Call) Run

func (*MockServerState_GetClientState_Call) RunAndReturn

type MockServerState_HasPendingRequest_Call

type MockServerState_HasPendingRequest_Call struct {
	*mock.Call
}

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

func (*MockServerState_HasPendingRequest_Call) Return

func (*MockServerState_HasPendingRequest_Call) Run

func (*MockServerState_HasPendingRequest_Call) RunAndReturn

type MockServerState_HasPendingRequests_Call

type MockServerState_HasPendingRequests_Call struct {
	*mock.Call
}

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

func (*MockServerState_HasPendingRequests_Call) Return

func (*MockServerState_HasPendingRequests_Call) Run

func (*MockServerState_HasPendingRequests_Call) RunAndReturn

type Mockdialector

type Mockdialector struct {
	mock.Mock
}

Mockdialector is an autogenerated mock type for the dialector type

func NewMockdialector

func NewMockdialector(t interface {
	mock.TestingT
	Cleanup(func())
}) *Mockdialector

NewMockdialector creates a new instance of Mockdialector. 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 (*Mockdialector) Dialect

func (_m *Mockdialector) Dialect() ocpp.Dialect

Dialect provides a mock function with no fields

func (*Mockdialector) EXPECT

func (_m *Mockdialector) EXPECT() *Mockdialector_Expecter

type Mockdialector_Dialect_Call

type Mockdialector_Dialect_Call struct {
	*mock.Call
}

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

func (*Mockdialector_Dialect_Call) Return

func (*Mockdialector_Dialect_Call) Run

func (*Mockdialector_Dialect_Call) RunAndReturn

func (_c *Mockdialector_Dialect_Call) RunAndReturn(run func() ocpp.Dialect) *Mockdialector_Dialect_Call

type Mockdialector_Expecter

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

func (*Mockdialector_Expecter) Dialect

Dialect is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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