Documentation
¶
Index ¶
- type MockCanceledRequestHandler
- type MockCanceledRequestHandler_Execute_Call
- func (_c *MockCanceledRequestHandler_Execute_Call) Return() *MockCanceledRequestHandler_Execute_Call
- func (_c *MockCanceledRequestHandler_Execute_Call) Run(...) *MockCanceledRequestHandler_Execute_Call
- func (_c *MockCanceledRequestHandler_Execute_Call) RunAndReturn(run func(string, string, ocpp.Request, *ocpp.Error)) *MockCanceledRequestHandler_Execute_Call
- type MockCanceledRequestHandler_Expecter
- type MockClientDispatcher
- func (_m *MockClientDispatcher) CompleteRequest(requestID string)
- func (_m *MockClientDispatcher) EXPECT() *MockClientDispatcher_Expecter
- func (_m *MockClientDispatcher) IsPaused() bool
- func (_m *MockClientDispatcher) IsRunning() bool
- func (_m *MockClientDispatcher) Pause()
- func (_m *MockClientDispatcher) Resume()
- func (_m *MockClientDispatcher) SendRequest(req ocppj.RequestBundle) error
- func (_m *MockClientDispatcher) SetNetworkClient(client ws.WsClient)
- func (_m *MockClientDispatcher) SetOnRequestCanceled(cb func(string, ocpp.Request, *ocpp.Error))
- func (_m *MockClientDispatcher) SetPendingRequestState(stateHandler ocppj.ClientState)
- func (_m *MockClientDispatcher) SetTimeout(timeout time.Duration)
- func (_m *MockClientDispatcher) Start()
- func (_m *MockClientDispatcher) Stop()
- type MockClientDispatcher_CompleteRequest_Call
- func (_c *MockClientDispatcher_CompleteRequest_Call) Return() *MockClientDispatcher_CompleteRequest_Call
- func (_c *MockClientDispatcher_CompleteRequest_Call) Run(run func(requestID string)) *MockClientDispatcher_CompleteRequest_Call
- func (_c *MockClientDispatcher_CompleteRequest_Call) RunAndReturn(run func(string)) *MockClientDispatcher_CompleteRequest_Call
- type MockClientDispatcher_Expecter
- func (_e *MockClientDispatcher_Expecter) CompleteRequest(requestID interface{}) *MockClientDispatcher_CompleteRequest_Call
- func (_e *MockClientDispatcher_Expecter) IsPaused() *MockClientDispatcher_IsPaused_Call
- func (_e *MockClientDispatcher_Expecter) IsRunning() *MockClientDispatcher_IsRunning_Call
- func (_e *MockClientDispatcher_Expecter) Pause() *MockClientDispatcher_Pause_Call
- func (_e *MockClientDispatcher_Expecter) Resume() *MockClientDispatcher_Resume_Call
- func (_e *MockClientDispatcher_Expecter) SendRequest(req interface{}) *MockClientDispatcher_SendRequest_Call
- func (_e *MockClientDispatcher_Expecter) SetNetworkClient(client interface{}) *MockClientDispatcher_SetNetworkClient_Call
- func (_e *MockClientDispatcher_Expecter) SetOnRequestCanceled(cb interface{}) *MockClientDispatcher_SetOnRequestCanceled_Call
- func (_e *MockClientDispatcher_Expecter) SetPendingRequestState(stateHandler interface{}) *MockClientDispatcher_SetPendingRequestState_Call
- func (_e *MockClientDispatcher_Expecter) SetTimeout(timeout interface{}) *MockClientDispatcher_SetTimeout_Call
- func (_e *MockClientDispatcher_Expecter) Start() *MockClientDispatcher_Start_Call
- func (_e *MockClientDispatcher_Expecter) Stop() *MockClientDispatcher_Stop_Call
- type MockClientDispatcher_IsPaused_Call
- func (_c *MockClientDispatcher_IsPaused_Call) Return(_a0 bool) *MockClientDispatcher_IsPaused_Call
- func (_c *MockClientDispatcher_IsPaused_Call) Run(run func()) *MockClientDispatcher_IsPaused_Call
- func (_c *MockClientDispatcher_IsPaused_Call) RunAndReturn(run func() bool) *MockClientDispatcher_IsPaused_Call
- type MockClientDispatcher_IsRunning_Call
- func (_c *MockClientDispatcher_IsRunning_Call) Return(_a0 bool) *MockClientDispatcher_IsRunning_Call
- func (_c *MockClientDispatcher_IsRunning_Call) Run(run func()) *MockClientDispatcher_IsRunning_Call
- func (_c *MockClientDispatcher_IsRunning_Call) RunAndReturn(run func() bool) *MockClientDispatcher_IsRunning_Call
- type MockClientDispatcher_Pause_Call
- type MockClientDispatcher_Resume_Call
- type MockClientDispatcher_SendRequest_Call
- func (_c *MockClientDispatcher_SendRequest_Call) Return(_a0 error) *MockClientDispatcher_SendRequest_Call
- func (_c *MockClientDispatcher_SendRequest_Call) Run(run func(req ocppj.RequestBundle)) *MockClientDispatcher_SendRequest_Call
- func (_c *MockClientDispatcher_SendRequest_Call) RunAndReturn(run func(ocppj.RequestBundle) error) *MockClientDispatcher_SendRequest_Call
- type MockClientDispatcher_SetNetworkClient_Call
- func (_c *MockClientDispatcher_SetNetworkClient_Call) Return() *MockClientDispatcher_SetNetworkClient_Call
- func (_c *MockClientDispatcher_SetNetworkClient_Call) Run(run func(client ws.WsClient)) *MockClientDispatcher_SetNetworkClient_Call
- func (_c *MockClientDispatcher_SetNetworkClient_Call) RunAndReturn(run func(ws.WsClient)) *MockClientDispatcher_SetNetworkClient_Call
- type MockClientDispatcher_SetOnRequestCanceled_Call
- func (_c *MockClientDispatcher_SetOnRequestCanceled_Call) Return() *MockClientDispatcher_SetOnRequestCanceled_Call
- func (_c *MockClientDispatcher_SetOnRequestCanceled_Call) Run(run func(cb func(string, ocpp.Request, *ocpp.Error))) *MockClientDispatcher_SetOnRequestCanceled_Call
- func (_c *MockClientDispatcher_SetOnRequestCanceled_Call) RunAndReturn(run func(func(string, ocpp.Request, *ocpp.Error))) *MockClientDispatcher_SetOnRequestCanceled_Call
- type MockClientDispatcher_SetPendingRequestState_Call
- func (_c *MockClientDispatcher_SetPendingRequestState_Call) Return() *MockClientDispatcher_SetPendingRequestState_Call
- func (_c *MockClientDispatcher_SetPendingRequestState_Call) Run(run func(stateHandler ocppj.ClientState)) *MockClientDispatcher_SetPendingRequestState_Call
- func (_c *MockClientDispatcher_SetPendingRequestState_Call) RunAndReturn(run func(ocppj.ClientState)) *MockClientDispatcher_SetPendingRequestState_Call
- type MockClientDispatcher_SetTimeout_Call
- func (_c *MockClientDispatcher_SetTimeout_Call) Return() *MockClientDispatcher_SetTimeout_Call
- func (_c *MockClientDispatcher_SetTimeout_Call) Run(run func(timeout time.Duration)) *MockClientDispatcher_SetTimeout_Call
- func (_c *MockClientDispatcher_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *MockClientDispatcher_SetTimeout_Call
- type MockClientDispatcher_Start_Call
- type MockClientDispatcher_Stop_Call
- type MockClientHandler
- type MockClientHandler_Execute_Call
- type MockClientHandler_Expecter
- type MockClientState
- func (_m *MockClientState) AddPendingRequest(requestID string, req ocpp.Request)
- func (_m *MockClientState) ClearPendingRequests()
- func (_m *MockClientState) DeletePendingRequest(requestID string)
- func (_m *MockClientState) EXPECT() *MockClientState_Expecter
- func (_m *MockClientState) GetPendingRequest(requestID string) (ocpp.Request, bool)
- func (_m *MockClientState) HasPendingRequest() bool
- type MockClientState_AddPendingRequest_Call
- func (_c *MockClientState_AddPendingRequest_Call) Return() *MockClientState_AddPendingRequest_Call
- func (_c *MockClientState_AddPendingRequest_Call) Run(run func(requestID string, req ocpp.Request)) *MockClientState_AddPendingRequest_Call
- func (_c *MockClientState_AddPendingRequest_Call) RunAndReturn(run func(string, ocpp.Request)) *MockClientState_AddPendingRequest_Call
- type MockClientState_ClearPendingRequests_Call
- func (_c *MockClientState_ClearPendingRequests_Call) Return() *MockClientState_ClearPendingRequests_Call
- func (_c *MockClientState_ClearPendingRequests_Call) Run(run func()) *MockClientState_ClearPendingRequests_Call
- func (_c *MockClientState_ClearPendingRequests_Call) RunAndReturn(run func()) *MockClientState_ClearPendingRequests_Call
- type MockClientState_DeletePendingRequest_Call
- func (_c *MockClientState_DeletePendingRequest_Call) Return() *MockClientState_DeletePendingRequest_Call
- func (_c *MockClientState_DeletePendingRequest_Call) Run(run func(requestID string)) *MockClientState_DeletePendingRequest_Call
- func (_c *MockClientState_DeletePendingRequest_Call) RunAndReturn(run func(string)) *MockClientState_DeletePendingRequest_Call
- type MockClientState_Expecter
- func (_e *MockClientState_Expecter) AddPendingRequest(requestID interface{}, req interface{}) *MockClientState_AddPendingRequest_Call
- func (_e *MockClientState_Expecter) ClearPendingRequests() *MockClientState_ClearPendingRequests_Call
- func (_e *MockClientState_Expecter) DeletePendingRequest(requestID interface{}) *MockClientState_DeletePendingRequest_Call
- func (_e *MockClientState_Expecter) GetPendingRequest(requestID interface{}) *MockClientState_GetPendingRequest_Call
- func (_e *MockClientState_Expecter) HasPendingRequest() *MockClientState_HasPendingRequest_Call
- type MockClientState_GetPendingRequest_Call
- func (_c *MockClientState_GetPendingRequest_Call) Return(_a0 ocpp.Request, _a1 bool) *MockClientState_GetPendingRequest_Call
- func (_c *MockClientState_GetPendingRequest_Call) Run(run func(requestID string)) *MockClientState_GetPendingRequest_Call
- func (_c *MockClientState_GetPendingRequest_Call) RunAndReturn(run func(string) (ocpp.Request, bool)) *MockClientState_GetPendingRequest_Call
- type MockClientState_HasPendingRequest_Call
- func (_c *MockClientState_HasPendingRequest_Call) Return(_a0 bool) *MockClientState_HasPendingRequest_Call
- func (_c *MockClientState_HasPendingRequest_Call) Run(run func()) *MockClientState_HasPendingRequest_Call
- func (_c *MockClientState_HasPendingRequest_Call) RunAndReturn(run func() bool) *MockClientState_HasPendingRequest_Call
- type MockErrorHandler
- type MockErrorHandler_Execute_Call
- func (_c *MockErrorHandler_Execute_Call) Return() *MockErrorHandler_Execute_Call
- func (_c *MockErrorHandler_Execute_Call) Run(run func(client ws.Channel, err *ocpp.Error, details interface{})) *MockErrorHandler_Execute_Call
- func (_c *MockErrorHandler_Execute_Call) RunAndReturn(run func(ws.Channel, *ocpp.Error, interface{})) *MockErrorHandler_Execute_Call
- type MockErrorHandler_Expecter
- type MockInvalidMessageHook
- type MockInvalidMessageHook_Execute_Call
- func (_c *MockInvalidMessageHook_Execute_Call) Return(_a0 *ocpp.Error) *MockInvalidMessageHook_Execute_Call
- func (_c *MockInvalidMessageHook_Execute_Call) Run(...) *MockInvalidMessageHook_Execute_Call
- func (_c *MockInvalidMessageHook_Execute_Call) RunAndReturn(run func(ws.Channel, *ocpp.Error, string, []interface{}) *ocpp.Error) *MockInvalidMessageHook_Execute_Call
- type MockInvalidMessageHook_Expecter
- type MockMessage
- type MockMessage_Expecter
- type MockMessage_GetMessageTypeId_Call
- func (_c *MockMessage_GetMessageTypeId_Call) Return(_a0 ocppj.MessageType) *MockMessage_GetMessageTypeId_Call
- func (_c *MockMessage_GetMessageTypeId_Call) Run(run func()) *MockMessage_GetMessageTypeId_Call
- func (_c *MockMessage_GetMessageTypeId_Call) RunAndReturn(run func() ocppj.MessageType) *MockMessage_GetMessageTypeId_Call
- type MockMessage_GetUniqueId_Call
- type MockMessage_MarshalJSON_Call
- type MockRequestHandler
- type MockRequestHandler_Execute_Call
- func (_c *MockRequestHandler_Execute_Call) Return() *MockRequestHandler_Execute_Call
- func (_c *MockRequestHandler_Execute_Call) Run(...) *MockRequestHandler_Execute_Call
- func (_c *MockRequestHandler_Execute_Call) RunAndReturn(run func(ws.Channel, ocpp.Request, string, string)) *MockRequestHandler_Execute_Call
- type MockRequestHandler_Expecter
- type MockRequestQueue
- func (_m *MockRequestQueue) EXPECT() *MockRequestQueue_Expecter
- func (_m *MockRequestQueue) Init()
- func (_m *MockRequestQueue) IsEmpty() bool
- func (_m *MockRequestQueue) IsFull() bool
- func (_m *MockRequestQueue) Peek() interface{}
- func (_m *MockRequestQueue) Pop() interface{}
- func (_m *MockRequestQueue) Push(element interface{}) error
- func (_m *MockRequestQueue) Size() int
- type MockRequestQueue_Expecter
- func (_e *MockRequestQueue_Expecter) Init() *MockRequestQueue_Init_Call
- func (_e *MockRequestQueue_Expecter) IsEmpty() *MockRequestQueue_IsEmpty_Call
- func (_e *MockRequestQueue_Expecter) IsFull() *MockRequestQueue_IsFull_Call
- func (_e *MockRequestQueue_Expecter) Peek() *MockRequestQueue_Peek_Call
- func (_e *MockRequestQueue_Expecter) Pop() *MockRequestQueue_Pop_Call
- func (_e *MockRequestQueue_Expecter) Push(element interface{}) *MockRequestQueue_Push_Call
- func (_e *MockRequestQueue_Expecter) Size() *MockRequestQueue_Size_Call
- type MockRequestQueue_Init_Call
- type MockRequestQueue_IsEmpty_Call
- type MockRequestQueue_IsFull_Call
- type MockRequestQueue_Peek_Call
- type MockRequestQueue_Pop_Call
- type MockRequestQueue_Push_Call
- type MockRequestQueue_Size_Call
- type MockResponseHandler
- type MockResponseHandler_Execute_Call
- func (_c *MockResponseHandler_Execute_Call) Return() *MockResponseHandler_Execute_Call
- func (_c *MockResponseHandler_Execute_Call) Run(run func(client ws.Channel, response ocpp.Response, requestId string)) *MockResponseHandler_Execute_Call
- func (_c *MockResponseHandler_Execute_Call) RunAndReturn(run func(ws.Channel, ocpp.Response, string)) *MockResponseHandler_Execute_Call
- type MockResponseHandler_Expecter
- type MockServerDispatcher
- func (_m *MockServerDispatcher) CompleteRequest(clientID string, requestID string)
- func (_m *MockServerDispatcher) CreateClient(clientID string)
- func (_m *MockServerDispatcher) DeleteClient(clientID string)
- func (_m *MockServerDispatcher) EXPECT() *MockServerDispatcher_Expecter
- func (_m *MockServerDispatcher) IsRunning() bool
- func (_m *MockServerDispatcher) SendRequest(clientID string, req ocppj.RequestBundle) error
- func (_m *MockServerDispatcher) SetNetworkServer(server ws.WsServer)
- func (_m *MockServerDispatcher) SetOnRequestCanceled(cb ocppj.CanceledRequestHandler)
- func (_m *MockServerDispatcher) SetPendingRequestState(stateHandler ocppj.ServerState)
- func (_m *MockServerDispatcher) SetTimeout(timeout time.Duration)
- func (_m *MockServerDispatcher) Start()
- func (_m *MockServerDispatcher) Stop()
- type MockServerDispatcher_CompleteRequest_Call
- func (_c *MockServerDispatcher_CompleteRequest_Call) Return() *MockServerDispatcher_CompleteRequest_Call
- func (_c *MockServerDispatcher_CompleteRequest_Call) Run(run func(clientID string, requestID string)) *MockServerDispatcher_CompleteRequest_Call
- func (_c *MockServerDispatcher_CompleteRequest_Call) RunAndReturn(run func(string, string)) *MockServerDispatcher_CompleteRequest_Call
- type MockServerDispatcher_CreateClient_Call
- func (_c *MockServerDispatcher_CreateClient_Call) Return() *MockServerDispatcher_CreateClient_Call
- func (_c *MockServerDispatcher_CreateClient_Call) Run(run func(clientID string)) *MockServerDispatcher_CreateClient_Call
- func (_c *MockServerDispatcher_CreateClient_Call) RunAndReturn(run func(string)) *MockServerDispatcher_CreateClient_Call
- type MockServerDispatcher_DeleteClient_Call
- func (_c *MockServerDispatcher_DeleteClient_Call) Return() *MockServerDispatcher_DeleteClient_Call
- func (_c *MockServerDispatcher_DeleteClient_Call) Run(run func(clientID string)) *MockServerDispatcher_DeleteClient_Call
- func (_c *MockServerDispatcher_DeleteClient_Call) RunAndReturn(run func(string)) *MockServerDispatcher_DeleteClient_Call
- type MockServerDispatcher_Expecter
- func (_e *MockServerDispatcher_Expecter) CompleteRequest(clientID interface{}, requestID interface{}) *MockServerDispatcher_CompleteRequest_Call
- func (_e *MockServerDispatcher_Expecter) CreateClient(clientID interface{}) *MockServerDispatcher_CreateClient_Call
- func (_e *MockServerDispatcher_Expecter) DeleteClient(clientID interface{}) *MockServerDispatcher_DeleteClient_Call
- func (_e *MockServerDispatcher_Expecter) IsRunning() *MockServerDispatcher_IsRunning_Call
- func (_e *MockServerDispatcher_Expecter) SendRequest(clientID interface{}, req interface{}) *MockServerDispatcher_SendRequest_Call
- func (_e *MockServerDispatcher_Expecter) SetNetworkServer(server interface{}) *MockServerDispatcher_SetNetworkServer_Call
- func (_e *MockServerDispatcher_Expecter) SetOnRequestCanceled(cb interface{}) *MockServerDispatcher_SetOnRequestCanceled_Call
- func (_e *MockServerDispatcher_Expecter) SetPendingRequestState(stateHandler interface{}) *MockServerDispatcher_SetPendingRequestState_Call
- func (_e *MockServerDispatcher_Expecter) SetTimeout(timeout interface{}) *MockServerDispatcher_SetTimeout_Call
- func (_e *MockServerDispatcher_Expecter) Start() *MockServerDispatcher_Start_Call
- func (_e *MockServerDispatcher_Expecter) Stop() *MockServerDispatcher_Stop_Call
- type MockServerDispatcher_IsRunning_Call
- func (_c *MockServerDispatcher_IsRunning_Call) Return(_a0 bool) *MockServerDispatcher_IsRunning_Call
- func (_c *MockServerDispatcher_IsRunning_Call) Run(run func()) *MockServerDispatcher_IsRunning_Call
- func (_c *MockServerDispatcher_IsRunning_Call) RunAndReturn(run func() bool) *MockServerDispatcher_IsRunning_Call
- type MockServerDispatcher_SendRequest_Call
- func (_c *MockServerDispatcher_SendRequest_Call) Return(_a0 error) *MockServerDispatcher_SendRequest_Call
- func (_c *MockServerDispatcher_SendRequest_Call) Run(run func(clientID string, req ocppj.RequestBundle)) *MockServerDispatcher_SendRequest_Call
- func (_c *MockServerDispatcher_SendRequest_Call) RunAndReturn(run func(string, ocppj.RequestBundle) error) *MockServerDispatcher_SendRequest_Call
- type MockServerDispatcher_SetNetworkServer_Call
- func (_c *MockServerDispatcher_SetNetworkServer_Call) Return() *MockServerDispatcher_SetNetworkServer_Call
- func (_c *MockServerDispatcher_SetNetworkServer_Call) Run(run func(server ws.WsServer)) *MockServerDispatcher_SetNetworkServer_Call
- func (_c *MockServerDispatcher_SetNetworkServer_Call) RunAndReturn(run func(ws.WsServer)) *MockServerDispatcher_SetNetworkServer_Call
- type MockServerDispatcher_SetOnRequestCanceled_Call
- func (_c *MockServerDispatcher_SetOnRequestCanceled_Call) Return() *MockServerDispatcher_SetOnRequestCanceled_Call
- func (_c *MockServerDispatcher_SetOnRequestCanceled_Call) Run(run func(cb ocppj.CanceledRequestHandler)) *MockServerDispatcher_SetOnRequestCanceled_Call
- func (_c *MockServerDispatcher_SetOnRequestCanceled_Call) RunAndReturn(run func(ocppj.CanceledRequestHandler)) *MockServerDispatcher_SetOnRequestCanceled_Call
- type MockServerDispatcher_SetPendingRequestState_Call
- func (_c *MockServerDispatcher_SetPendingRequestState_Call) Return() *MockServerDispatcher_SetPendingRequestState_Call
- func (_c *MockServerDispatcher_SetPendingRequestState_Call) Run(run func(stateHandler ocppj.ServerState)) *MockServerDispatcher_SetPendingRequestState_Call
- func (_c *MockServerDispatcher_SetPendingRequestState_Call) RunAndReturn(run func(ocppj.ServerState)) *MockServerDispatcher_SetPendingRequestState_Call
- type MockServerDispatcher_SetTimeout_Call
- func (_c *MockServerDispatcher_SetTimeout_Call) Return() *MockServerDispatcher_SetTimeout_Call
- func (_c *MockServerDispatcher_SetTimeout_Call) Run(run func(timeout time.Duration)) *MockServerDispatcher_SetTimeout_Call
- func (_c *MockServerDispatcher_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *MockServerDispatcher_SetTimeout_Call
- type MockServerDispatcher_Start_Call
- type MockServerDispatcher_Stop_Call
- type MockServerQueueMap
- func (_m *MockServerQueueMap) Add(clientID string, queue ocppj.RequestQueue)
- func (_m *MockServerQueueMap) EXPECT() *MockServerQueueMap_Expecter
- func (_m *MockServerQueueMap) Get(clientID string) (ocppj.RequestQueue, bool)
- func (_m *MockServerQueueMap) GetOrCreate(clientID string) ocppj.RequestQueue
- func (_m *MockServerQueueMap) Init()
- func (_m *MockServerQueueMap) Remove(clientID string)
- type MockServerQueueMap_Add_Call
- func (_c *MockServerQueueMap_Add_Call) Return() *MockServerQueueMap_Add_Call
- func (_c *MockServerQueueMap_Add_Call) Run(run func(clientID string, queue ocppj.RequestQueue)) *MockServerQueueMap_Add_Call
- func (_c *MockServerQueueMap_Add_Call) RunAndReturn(run func(string, ocppj.RequestQueue)) *MockServerQueueMap_Add_Call
- type MockServerQueueMap_Expecter
- func (_e *MockServerQueueMap_Expecter) Add(clientID interface{}, queue interface{}) *MockServerQueueMap_Add_Call
- func (_e *MockServerQueueMap_Expecter) Get(clientID interface{}) *MockServerQueueMap_Get_Call
- func (_e *MockServerQueueMap_Expecter) GetOrCreate(clientID interface{}) *MockServerQueueMap_GetOrCreate_Call
- func (_e *MockServerQueueMap_Expecter) Init() *MockServerQueueMap_Init_Call
- func (_e *MockServerQueueMap_Expecter) Remove(clientID interface{}) *MockServerQueueMap_Remove_Call
- type MockServerQueueMap_GetOrCreate_Call
- func (_c *MockServerQueueMap_GetOrCreate_Call) Return(_a0 ocppj.RequestQueue) *MockServerQueueMap_GetOrCreate_Call
- func (_c *MockServerQueueMap_GetOrCreate_Call) Run(run func(clientID string)) *MockServerQueueMap_GetOrCreate_Call
- func (_c *MockServerQueueMap_GetOrCreate_Call) RunAndReturn(run func(string) ocppj.RequestQueue) *MockServerQueueMap_GetOrCreate_Call
- type MockServerQueueMap_Get_Call
- func (_c *MockServerQueueMap_Get_Call) Return(_a0 ocppj.RequestQueue, _a1 bool) *MockServerQueueMap_Get_Call
- func (_c *MockServerQueueMap_Get_Call) Run(run func(clientID string)) *MockServerQueueMap_Get_Call
- func (_c *MockServerQueueMap_Get_Call) RunAndReturn(run func(string) (ocppj.RequestQueue, bool)) *MockServerQueueMap_Get_Call
- type MockServerQueueMap_Init_Call
- type MockServerQueueMap_Remove_Call
- type MockServerState
- func (_m *MockServerState) AddPendingRequest(clientID string, requestID string, req ocpp.Request)
- func (_m *MockServerState) ClearAllPendingRequests()
- func (_m *MockServerState) ClearClientPendingRequest(clientID string)
- func (_m *MockServerState) DeletePendingRequest(clientID string, requestID string)
- func (_m *MockServerState) EXPECT() *MockServerState_Expecter
- func (_m *MockServerState) GetClientState(clientID string) ocppj.ClientState
- func (_m *MockServerState) HasPendingRequest(clientID string) bool
- func (_m *MockServerState) HasPendingRequests() bool
- type MockServerState_AddPendingRequest_Call
- func (_c *MockServerState_AddPendingRequest_Call) Return() *MockServerState_AddPendingRequest_Call
- func (_c *MockServerState_AddPendingRequest_Call) Run(run func(clientID string, requestID string, req ocpp.Request)) *MockServerState_AddPendingRequest_Call
- func (_c *MockServerState_AddPendingRequest_Call) RunAndReturn(run func(string, string, ocpp.Request)) *MockServerState_AddPendingRequest_Call
- type MockServerState_ClearAllPendingRequests_Call
- func (_c *MockServerState_ClearAllPendingRequests_Call) Return() *MockServerState_ClearAllPendingRequests_Call
- func (_c *MockServerState_ClearAllPendingRequests_Call) Run(run func()) *MockServerState_ClearAllPendingRequests_Call
- func (_c *MockServerState_ClearAllPendingRequests_Call) RunAndReturn(run func()) *MockServerState_ClearAllPendingRequests_Call
- type MockServerState_ClearClientPendingRequest_Call
- func (_c *MockServerState_ClearClientPendingRequest_Call) Return() *MockServerState_ClearClientPendingRequest_Call
- func (_c *MockServerState_ClearClientPendingRequest_Call) Run(run func(clientID string)) *MockServerState_ClearClientPendingRequest_Call
- func (_c *MockServerState_ClearClientPendingRequest_Call) RunAndReturn(run func(string)) *MockServerState_ClearClientPendingRequest_Call
- type MockServerState_DeletePendingRequest_Call
- func (_c *MockServerState_DeletePendingRequest_Call) Return() *MockServerState_DeletePendingRequest_Call
- func (_c *MockServerState_DeletePendingRequest_Call) Run(run func(clientID string, requestID string)) *MockServerState_DeletePendingRequest_Call
- func (_c *MockServerState_DeletePendingRequest_Call) RunAndReturn(run func(string, string)) *MockServerState_DeletePendingRequest_Call
- type MockServerState_Expecter
- func (_e *MockServerState_Expecter) AddPendingRequest(clientID interface{}, requestID interface{}, req interface{}) *MockServerState_AddPendingRequest_Call
- func (_e *MockServerState_Expecter) ClearAllPendingRequests() *MockServerState_ClearAllPendingRequests_Call
- func (_e *MockServerState_Expecter) ClearClientPendingRequest(clientID interface{}) *MockServerState_ClearClientPendingRequest_Call
- func (_e *MockServerState_Expecter) DeletePendingRequest(clientID interface{}, requestID interface{}) *MockServerState_DeletePendingRequest_Call
- func (_e *MockServerState_Expecter) GetClientState(clientID interface{}) *MockServerState_GetClientState_Call
- func (_e *MockServerState_Expecter) HasPendingRequest(clientID interface{}) *MockServerState_HasPendingRequest_Call
- func (_e *MockServerState_Expecter) HasPendingRequests() *MockServerState_HasPendingRequests_Call
- type MockServerState_GetClientState_Call
- func (_c *MockServerState_GetClientState_Call) Return(_a0 ocppj.ClientState) *MockServerState_GetClientState_Call
- func (_c *MockServerState_GetClientState_Call) Run(run func(clientID string)) *MockServerState_GetClientState_Call
- func (_c *MockServerState_GetClientState_Call) RunAndReturn(run func(string) ocppj.ClientState) *MockServerState_GetClientState_Call
- type MockServerState_HasPendingRequest_Call
- func (_c *MockServerState_HasPendingRequest_Call) Return(_a0 bool) *MockServerState_HasPendingRequest_Call
- func (_c *MockServerState_HasPendingRequest_Call) Run(run func(clientID string)) *MockServerState_HasPendingRequest_Call
- func (_c *MockServerState_HasPendingRequest_Call) RunAndReturn(run func(string) bool) *MockServerState_HasPendingRequest_Call
- type MockServerState_HasPendingRequests_Call
- func (_c *MockServerState_HasPendingRequests_Call) Return(_a0 bool) *MockServerState_HasPendingRequests_Call
- func (_c *MockServerState_HasPendingRequests_Call) Run(run func()) *MockServerState_HasPendingRequests_Call
- func (_c *MockServerState_HasPendingRequests_Call) RunAndReturn(run func() bool) *MockServerState_HasPendingRequests_Call
- type Mockdialector
- type Mockdialector_Dialect_Call
- type Mockdialector_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCanceledRequestHandler ¶
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 (_m *MockCanceledRequestHandler) EXPECT() *MockCanceledRequestHandler_Expecter
type MockCanceledRequestHandler_Execute_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 (_c *MockCanceledRequestHandler_Execute_Call) Return() *MockCanceledRequestHandler_Execute_Call
func (*MockCanceledRequestHandler_Execute_Call) Run ¶
func (_c *MockCanceledRequestHandler_Execute_Call) Run(run func(clientID string, requestID string, request ocpp.Request, err *ocpp.Error)) *MockCanceledRequestHandler_Execute_Call
func (*MockCanceledRequestHandler_Execute_Call) RunAndReturn ¶
func (_c *MockCanceledRequestHandler_Execute_Call) RunAndReturn(run func(string, string, ocpp.Request, *ocpp.Error)) *MockCanceledRequestHandler_Execute_Call
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 ¶
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 (_m *MockClientDispatcher) EXPECT() *MockClientDispatcher_Expecter
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 ¶
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 ¶
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 (_c *MockClientDispatcher_CompleteRequest_Call) Return() *MockClientDispatcher_CompleteRequest_Call
func (*MockClientDispatcher_CompleteRequest_Call) Run ¶
func (_c *MockClientDispatcher_CompleteRequest_Call) Run(run func(requestID string)) *MockClientDispatcher_CompleteRequest_Call
func (*MockClientDispatcher_CompleteRequest_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_CompleteRequest_Call) RunAndReturn(run func(string)) *MockClientDispatcher_CompleteRequest_Call
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 ¶
func (_e *MockClientDispatcher_Expecter) IsPaused() *MockClientDispatcher_IsPaused_Call
IsPaused is a helper method to define mock.On call
func (*MockClientDispatcher_Expecter) IsRunning ¶
func (_e *MockClientDispatcher_Expecter) IsRunning() *MockClientDispatcher_IsRunning_Call
IsRunning is a helper method to define mock.On call
func (*MockClientDispatcher_Expecter) Pause ¶
func (_e *MockClientDispatcher_Expecter) Pause() *MockClientDispatcher_Pause_Call
Pause is a helper method to define mock.On call
func (*MockClientDispatcher_Expecter) Resume ¶
func (_e *MockClientDispatcher_Expecter) Resume() *MockClientDispatcher_Resume_Call
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 ¶
func (_e *MockClientDispatcher_Expecter) Start() *MockClientDispatcher_Start_Call
Start is a helper method to define mock.On call
func (*MockClientDispatcher_Expecter) Stop ¶
func (_e *MockClientDispatcher_Expecter) Stop() *MockClientDispatcher_Stop_Call
Stop is a helper method to define mock.On call
type MockClientDispatcher_IsPaused_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 (_c *MockClientDispatcher_IsPaused_Call) Return(_a0 bool) *MockClientDispatcher_IsPaused_Call
func (*MockClientDispatcher_IsPaused_Call) Run ¶
func (_c *MockClientDispatcher_IsPaused_Call) Run(run func()) *MockClientDispatcher_IsPaused_Call
func (*MockClientDispatcher_IsPaused_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_IsPaused_Call) RunAndReturn(run func() bool) *MockClientDispatcher_IsPaused_Call
type MockClientDispatcher_IsRunning_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 (_c *MockClientDispatcher_IsRunning_Call) Return(_a0 bool) *MockClientDispatcher_IsRunning_Call
func (*MockClientDispatcher_IsRunning_Call) Run ¶
func (_c *MockClientDispatcher_IsRunning_Call) Run(run func()) *MockClientDispatcher_IsRunning_Call
func (*MockClientDispatcher_IsRunning_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_IsRunning_Call) RunAndReturn(run func() bool) *MockClientDispatcher_IsRunning_Call
type MockClientDispatcher_Pause_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 (_c *MockClientDispatcher_Pause_Call) Return() *MockClientDispatcher_Pause_Call
func (*MockClientDispatcher_Pause_Call) Run ¶
func (_c *MockClientDispatcher_Pause_Call) Run(run func()) *MockClientDispatcher_Pause_Call
func (*MockClientDispatcher_Pause_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_Pause_Call) RunAndReturn(run func()) *MockClientDispatcher_Pause_Call
type MockClientDispatcher_Resume_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 (_c *MockClientDispatcher_Resume_Call) Return() *MockClientDispatcher_Resume_Call
func (*MockClientDispatcher_Resume_Call) Run ¶
func (_c *MockClientDispatcher_Resume_Call) Run(run func()) *MockClientDispatcher_Resume_Call
func (*MockClientDispatcher_Resume_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_Resume_Call) RunAndReturn(run func()) *MockClientDispatcher_Resume_Call
type MockClientDispatcher_SendRequest_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 (_c *MockClientDispatcher_SendRequest_Call) Return(_a0 error) *MockClientDispatcher_SendRequest_Call
func (*MockClientDispatcher_SendRequest_Call) Run ¶
func (_c *MockClientDispatcher_SendRequest_Call) Run(run func(req ocppj.RequestBundle)) *MockClientDispatcher_SendRequest_Call
func (*MockClientDispatcher_SendRequest_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_SendRequest_Call) RunAndReturn(run func(ocppj.RequestBundle) error) *MockClientDispatcher_SendRequest_Call
type MockClientDispatcher_SetNetworkClient_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 (_c *MockClientDispatcher_SetNetworkClient_Call) Return() *MockClientDispatcher_SetNetworkClient_Call
func (*MockClientDispatcher_SetNetworkClient_Call) Run ¶
func (_c *MockClientDispatcher_SetNetworkClient_Call) Run(run func(client ws.WsClient)) *MockClientDispatcher_SetNetworkClient_Call
func (*MockClientDispatcher_SetNetworkClient_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_SetNetworkClient_Call) RunAndReturn(run func(ws.WsClient)) *MockClientDispatcher_SetNetworkClient_Call
type MockClientDispatcher_SetOnRequestCanceled_Call ¶
MockClientDispatcher_SetOnRequestCanceled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnRequestCanceled'
func (*MockClientDispatcher_SetOnRequestCanceled_Call) Run ¶
func (_c *MockClientDispatcher_SetOnRequestCanceled_Call) Run(run func(cb func(string, ocpp.Request, *ocpp.Error))) *MockClientDispatcher_SetOnRequestCanceled_Call
func (*MockClientDispatcher_SetOnRequestCanceled_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_SetOnRequestCanceled_Call) RunAndReturn(run func(func(string, ocpp.Request, *ocpp.Error))) *MockClientDispatcher_SetOnRequestCanceled_Call
type MockClientDispatcher_SetPendingRequestState_Call ¶
MockClientDispatcher_SetPendingRequestState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPendingRequestState'
func (*MockClientDispatcher_SetPendingRequestState_Call) Run ¶
func (_c *MockClientDispatcher_SetPendingRequestState_Call) Run(run func(stateHandler ocppj.ClientState)) *MockClientDispatcher_SetPendingRequestState_Call
func (*MockClientDispatcher_SetPendingRequestState_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_SetPendingRequestState_Call) RunAndReturn(run func(ocppj.ClientState)) *MockClientDispatcher_SetPendingRequestState_Call
type MockClientDispatcher_SetTimeout_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 (_c *MockClientDispatcher_SetTimeout_Call) Return() *MockClientDispatcher_SetTimeout_Call
func (*MockClientDispatcher_SetTimeout_Call) Run ¶
func (_c *MockClientDispatcher_SetTimeout_Call) Run(run func(timeout time.Duration)) *MockClientDispatcher_SetTimeout_Call
func (*MockClientDispatcher_SetTimeout_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *MockClientDispatcher_SetTimeout_Call
type MockClientDispatcher_Start_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 (_c *MockClientDispatcher_Start_Call) Return() *MockClientDispatcher_Start_Call
func (*MockClientDispatcher_Start_Call) Run ¶
func (_c *MockClientDispatcher_Start_Call) Run(run func()) *MockClientDispatcher_Start_Call
func (*MockClientDispatcher_Start_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_Start_Call) RunAndReturn(run func()) *MockClientDispatcher_Start_Call
type MockClientDispatcher_Stop_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 (_c *MockClientDispatcher_Stop_Call) Return() *MockClientDispatcher_Stop_Call
func (*MockClientDispatcher_Stop_Call) Run ¶
func (_c *MockClientDispatcher_Stop_Call) Run(run func()) *MockClientDispatcher_Stop_Call
func (*MockClientDispatcher_Stop_Call) RunAndReturn ¶
func (_c *MockClientDispatcher_Stop_Call) RunAndReturn(run func()) *MockClientDispatcher_Stop_Call
type MockClientHandler ¶
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 (_m *MockClientHandler) EXPECT() *MockClientHandler_Expecter
func (*MockClientHandler) Execute ¶
func (_m *MockClientHandler) Execute(client ws.Channel)
Execute provides a mock function with given fields: client
type MockClientHandler_Execute_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 (_c *MockClientHandler_Execute_Call) Return() *MockClientHandler_Execute_Call
func (*MockClientHandler_Execute_Call) Run ¶
func (_c *MockClientHandler_Execute_Call) Run(run func(client ws.Channel)) *MockClientHandler_Execute_Call
func (*MockClientHandler_Execute_Call) RunAndReturn ¶
func (_c *MockClientHandler_Execute_Call) RunAndReturn(run func(ws.Channel)) *MockClientHandler_Execute_Call
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 ¶
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 (_m *MockClientState) EXPECT() *MockClientState_Expecter
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 ¶
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 (_c *MockClientState_AddPendingRequest_Call) Return() *MockClientState_AddPendingRequest_Call
func (*MockClientState_AddPendingRequest_Call) Run ¶
func (_c *MockClientState_AddPendingRequest_Call) Run(run func(requestID string, req ocpp.Request)) *MockClientState_AddPendingRequest_Call
func (*MockClientState_AddPendingRequest_Call) RunAndReturn ¶
func (_c *MockClientState_AddPendingRequest_Call) RunAndReturn(run func(string, ocpp.Request)) *MockClientState_AddPendingRequest_Call
type MockClientState_ClearPendingRequests_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 (_c *MockClientState_ClearPendingRequests_Call) Return() *MockClientState_ClearPendingRequests_Call
func (*MockClientState_ClearPendingRequests_Call) Run ¶
func (_c *MockClientState_ClearPendingRequests_Call) Run(run func()) *MockClientState_ClearPendingRequests_Call
func (*MockClientState_ClearPendingRequests_Call) RunAndReturn ¶
func (_c *MockClientState_ClearPendingRequests_Call) RunAndReturn(run func()) *MockClientState_ClearPendingRequests_Call
type MockClientState_DeletePendingRequest_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 (_c *MockClientState_DeletePendingRequest_Call) Return() *MockClientState_DeletePendingRequest_Call
func (*MockClientState_DeletePendingRequest_Call) Run ¶
func (_c *MockClientState_DeletePendingRequest_Call) Run(run func(requestID string)) *MockClientState_DeletePendingRequest_Call
func (*MockClientState_DeletePendingRequest_Call) RunAndReturn ¶
func (_c *MockClientState_DeletePendingRequest_Call) RunAndReturn(run func(string)) *MockClientState_DeletePendingRequest_Call
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 ¶
func (_e *MockClientState_Expecter) ClearPendingRequests() *MockClientState_ClearPendingRequests_Call
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 ¶
func (_e *MockClientState_Expecter) HasPendingRequest() *MockClientState_HasPendingRequest_Call
HasPendingRequest is a helper method to define mock.On call
type MockClientState_GetPendingRequest_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 (_c *MockClientState_GetPendingRequest_Call) Return(_a0 ocpp.Request, _a1 bool) *MockClientState_GetPendingRequest_Call
func (*MockClientState_GetPendingRequest_Call) Run ¶
func (_c *MockClientState_GetPendingRequest_Call) Run(run func(requestID string)) *MockClientState_GetPendingRequest_Call
func (*MockClientState_GetPendingRequest_Call) RunAndReturn ¶
func (_c *MockClientState_GetPendingRequest_Call) RunAndReturn(run func(string) (ocpp.Request, bool)) *MockClientState_GetPendingRequest_Call
type MockClientState_HasPendingRequest_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 (_c *MockClientState_HasPendingRequest_Call) Return(_a0 bool) *MockClientState_HasPendingRequest_Call
func (*MockClientState_HasPendingRequest_Call) Run ¶
func (_c *MockClientState_HasPendingRequest_Call) Run(run func()) *MockClientState_HasPendingRequest_Call
func (*MockClientState_HasPendingRequest_Call) RunAndReturn ¶
func (_c *MockClientState_HasPendingRequest_Call) RunAndReturn(run func() bool) *MockClientState_HasPendingRequest_Call
type MockErrorHandler ¶
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 (_m *MockErrorHandler) EXPECT() *MockErrorHandler_Expecter
type MockErrorHandler_Execute_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 (_c *MockErrorHandler_Execute_Call) Return() *MockErrorHandler_Execute_Call
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 ¶
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 (_m *MockInvalidMessageHook) EXPECT() *MockInvalidMessageHook_Expecter
type MockInvalidMessageHook_Execute_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 (_c *MockInvalidMessageHook_Execute_Call) Return(_a0 *ocpp.Error) *MockInvalidMessageHook_Execute_Call
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 ¶
func (_c *MockInvalidMessageHook_Execute_Call) RunAndReturn(run func(ws.Channel, *ocpp.Error, string, []interface{}) *ocpp.Error) *MockInvalidMessageHook_Execute_Call
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 ¶
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 ¶
func (_e *MockMessage_Expecter) GetMessageTypeId() *MockMessage_GetMessageTypeId_Call
GetMessageTypeId is a helper method to define mock.On call
func (*MockMessage_Expecter) GetUniqueId ¶
func (_e *MockMessage_Expecter) GetUniqueId() *MockMessage_GetUniqueId_Call
GetUniqueId is a helper method to define mock.On call
func (*MockMessage_Expecter) MarshalJSON ¶
func (_e *MockMessage_Expecter) MarshalJSON() *MockMessage_MarshalJSON_Call
MarshalJSON is a helper method to define mock.On call
type MockMessage_GetMessageTypeId_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 (_c *MockMessage_GetMessageTypeId_Call) Return(_a0 ocppj.MessageType) *MockMessage_GetMessageTypeId_Call
func (*MockMessage_GetMessageTypeId_Call) Run ¶
func (_c *MockMessage_GetMessageTypeId_Call) Run(run func()) *MockMessage_GetMessageTypeId_Call
func (*MockMessage_GetMessageTypeId_Call) RunAndReturn ¶
func (_c *MockMessage_GetMessageTypeId_Call) RunAndReturn(run func() ocppj.MessageType) *MockMessage_GetMessageTypeId_Call
type MockMessage_GetUniqueId_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 (_c *MockMessage_GetUniqueId_Call) Return(_a0 string) *MockMessage_GetUniqueId_Call
func (*MockMessage_GetUniqueId_Call) Run ¶
func (_c *MockMessage_GetUniqueId_Call) Run(run func()) *MockMessage_GetUniqueId_Call
func (*MockMessage_GetUniqueId_Call) RunAndReturn ¶
func (_c *MockMessage_GetUniqueId_Call) RunAndReturn(run func() string) *MockMessage_GetUniqueId_Call
type MockMessage_MarshalJSON_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 (_c *MockMessage_MarshalJSON_Call) Return(_a0 []byte, _a1 error) *MockMessage_MarshalJSON_Call
func (*MockMessage_MarshalJSON_Call) Run ¶
func (_c *MockMessage_MarshalJSON_Call) Run(run func()) *MockMessage_MarshalJSON_Call
func (*MockMessage_MarshalJSON_Call) RunAndReturn ¶
func (_c *MockMessage_MarshalJSON_Call) RunAndReturn(run func() ([]byte, error)) *MockMessage_MarshalJSON_Call
type MockRequestHandler ¶
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 (_m *MockRequestHandler) EXPECT() *MockRequestHandler_Expecter
type MockRequestHandler_Execute_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 (_c *MockRequestHandler_Execute_Call) Return() *MockRequestHandler_Execute_Call
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 ¶
func (_c *MockRequestHandler_Execute_Call) RunAndReturn(run func(ws.Channel, ocpp.Request, string, string)) *MockRequestHandler_Execute_Call
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 ¶
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 (_m *MockRequestQueue) EXPECT() *MockRequestQueue_Expecter
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 ¶
func (_e *MockRequestQueue_Expecter) Init() *MockRequestQueue_Init_Call
Init is a helper method to define mock.On call
func (*MockRequestQueue_Expecter) IsEmpty ¶
func (_e *MockRequestQueue_Expecter) IsEmpty() *MockRequestQueue_IsEmpty_Call
IsEmpty is a helper method to define mock.On call
func (*MockRequestQueue_Expecter) IsFull ¶
func (_e *MockRequestQueue_Expecter) IsFull() *MockRequestQueue_IsFull_Call
IsFull is a helper method to define mock.On call
func (*MockRequestQueue_Expecter) Peek ¶
func (_e *MockRequestQueue_Expecter) Peek() *MockRequestQueue_Peek_Call
Peek is a helper method to define mock.On call
func (*MockRequestQueue_Expecter) Pop ¶
func (_e *MockRequestQueue_Expecter) Pop() *MockRequestQueue_Pop_Call
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 ¶
func (_e *MockRequestQueue_Expecter) Size() *MockRequestQueue_Size_Call
Size is a helper method to define mock.On call
type MockRequestQueue_Init_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 (_c *MockRequestQueue_Init_Call) Return() *MockRequestQueue_Init_Call
func (*MockRequestQueue_Init_Call) Run ¶
func (_c *MockRequestQueue_Init_Call) Run(run func()) *MockRequestQueue_Init_Call
func (*MockRequestQueue_Init_Call) RunAndReturn ¶
func (_c *MockRequestQueue_Init_Call) RunAndReturn(run func()) *MockRequestQueue_Init_Call
type MockRequestQueue_IsEmpty_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 (_c *MockRequestQueue_IsEmpty_Call) Return(_a0 bool) *MockRequestQueue_IsEmpty_Call
func (*MockRequestQueue_IsEmpty_Call) Run ¶
func (_c *MockRequestQueue_IsEmpty_Call) Run(run func()) *MockRequestQueue_IsEmpty_Call
func (*MockRequestQueue_IsEmpty_Call) RunAndReturn ¶
func (_c *MockRequestQueue_IsEmpty_Call) RunAndReturn(run func() bool) *MockRequestQueue_IsEmpty_Call
type MockRequestQueue_IsFull_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 (_c *MockRequestQueue_IsFull_Call) Return(_a0 bool) *MockRequestQueue_IsFull_Call
func (*MockRequestQueue_IsFull_Call) Run ¶
func (_c *MockRequestQueue_IsFull_Call) Run(run func()) *MockRequestQueue_IsFull_Call
func (*MockRequestQueue_IsFull_Call) RunAndReturn ¶
func (_c *MockRequestQueue_IsFull_Call) RunAndReturn(run func() bool) *MockRequestQueue_IsFull_Call
type MockRequestQueue_Peek_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 (_c *MockRequestQueue_Peek_Call) Run(run func()) *MockRequestQueue_Peek_Call
func (*MockRequestQueue_Peek_Call) RunAndReturn ¶
func (_c *MockRequestQueue_Peek_Call) RunAndReturn(run func() interface{}) *MockRequestQueue_Peek_Call
type MockRequestQueue_Pop_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 (_c *MockRequestQueue_Pop_Call) Run(run func()) *MockRequestQueue_Pop_Call
func (*MockRequestQueue_Pop_Call) RunAndReturn ¶
func (_c *MockRequestQueue_Pop_Call) RunAndReturn(run func() interface{}) *MockRequestQueue_Pop_Call
type MockRequestQueue_Push_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 (_c *MockRequestQueue_Push_Call) Return(_a0 error) *MockRequestQueue_Push_Call
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 ¶
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 (_c *MockRequestQueue_Size_Call) Return(_a0 int) *MockRequestQueue_Size_Call
func (*MockRequestQueue_Size_Call) Run ¶
func (_c *MockRequestQueue_Size_Call) Run(run func()) *MockRequestQueue_Size_Call
func (*MockRequestQueue_Size_Call) RunAndReturn ¶
func (_c *MockRequestQueue_Size_Call) RunAndReturn(run func() int) *MockRequestQueue_Size_Call
type MockResponseHandler ¶
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 (_m *MockResponseHandler) EXPECT() *MockResponseHandler_Expecter
type MockResponseHandler_Execute_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 (_c *MockResponseHandler_Execute_Call) Return() *MockResponseHandler_Execute_Call
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 ¶
func (_c *MockResponseHandler_Execute_Call) RunAndReturn(run func(ws.Channel, ocpp.Response, string)) *MockResponseHandler_Execute_Call
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 ¶
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 (_m *MockServerDispatcher) EXPECT() *MockServerDispatcher_Expecter
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 ¶
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 (_c *MockServerDispatcher_CompleteRequest_Call) Return() *MockServerDispatcher_CompleteRequest_Call
func (*MockServerDispatcher_CompleteRequest_Call) Run ¶
func (_c *MockServerDispatcher_CompleteRequest_Call) Run(run func(clientID string, requestID string)) *MockServerDispatcher_CompleteRequest_Call
func (*MockServerDispatcher_CompleteRequest_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_CompleteRequest_Call) RunAndReturn(run func(string, string)) *MockServerDispatcher_CompleteRequest_Call
type MockServerDispatcher_CreateClient_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 (_c *MockServerDispatcher_CreateClient_Call) Return() *MockServerDispatcher_CreateClient_Call
func (*MockServerDispatcher_CreateClient_Call) Run ¶
func (_c *MockServerDispatcher_CreateClient_Call) Run(run func(clientID string)) *MockServerDispatcher_CreateClient_Call
func (*MockServerDispatcher_CreateClient_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_CreateClient_Call) RunAndReturn(run func(string)) *MockServerDispatcher_CreateClient_Call
type MockServerDispatcher_DeleteClient_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 (_c *MockServerDispatcher_DeleteClient_Call) Return() *MockServerDispatcher_DeleteClient_Call
func (*MockServerDispatcher_DeleteClient_Call) Run ¶
func (_c *MockServerDispatcher_DeleteClient_Call) Run(run func(clientID string)) *MockServerDispatcher_DeleteClient_Call
func (*MockServerDispatcher_DeleteClient_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_DeleteClient_Call) RunAndReturn(run func(string)) *MockServerDispatcher_DeleteClient_Call
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 ¶
func (_e *MockServerDispatcher_Expecter) IsRunning() *MockServerDispatcher_IsRunning_Call
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 ¶
func (_e *MockServerDispatcher_Expecter) Start() *MockServerDispatcher_Start_Call
Start is a helper method to define mock.On call
func (*MockServerDispatcher_Expecter) Stop ¶
func (_e *MockServerDispatcher_Expecter) Stop() *MockServerDispatcher_Stop_Call
Stop is a helper method to define mock.On call
type MockServerDispatcher_IsRunning_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 (_c *MockServerDispatcher_IsRunning_Call) Return(_a0 bool) *MockServerDispatcher_IsRunning_Call
func (*MockServerDispatcher_IsRunning_Call) Run ¶
func (_c *MockServerDispatcher_IsRunning_Call) Run(run func()) *MockServerDispatcher_IsRunning_Call
func (*MockServerDispatcher_IsRunning_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_IsRunning_Call) RunAndReturn(run func() bool) *MockServerDispatcher_IsRunning_Call
type MockServerDispatcher_SendRequest_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 (_c *MockServerDispatcher_SendRequest_Call) Return(_a0 error) *MockServerDispatcher_SendRequest_Call
func (*MockServerDispatcher_SendRequest_Call) Run ¶
func (_c *MockServerDispatcher_SendRequest_Call) Run(run func(clientID string, req ocppj.RequestBundle)) *MockServerDispatcher_SendRequest_Call
func (*MockServerDispatcher_SendRequest_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_SendRequest_Call) RunAndReturn(run func(string, ocppj.RequestBundle) error) *MockServerDispatcher_SendRequest_Call
type MockServerDispatcher_SetNetworkServer_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 (_c *MockServerDispatcher_SetNetworkServer_Call) Return() *MockServerDispatcher_SetNetworkServer_Call
func (*MockServerDispatcher_SetNetworkServer_Call) Run ¶
func (_c *MockServerDispatcher_SetNetworkServer_Call) Run(run func(server ws.WsServer)) *MockServerDispatcher_SetNetworkServer_Call
func (*MockServerDispatcher_SetNetworkServer_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_SetNetworkServer_Call) RunAndReturn(run func(ws.WsServer)) *MockServerDispatcher_SetNetworkServer_Call
type MockServerDispatcher_SetOnRequestCanceled_Call ¶
MockServerDispatcher_SetOnRequestCanceled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetOnRequestCanceled'
func (*MockServerDispatcher_SetOnRequestCanceled_Call) Run ¶
func (_c *MockServerDispatcher_SetOnRequestCanceled_Call) Run(run func(cb ocppj.CanceledRequestHandler)) *MockServerDispatcher_SetOnRequestCanceled_Call
func (*MockServerDispatcher_SetOnRequestCanceled_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_SetOnRequestCanceled_Call) RunAndReturn(run func(ocppj.CanceledRequestHandler)) *MockServerDispatcher_SetOnRequestCanceled_Call
type MockServerDispatcher_SetPendingRequestState_Call ¶
MockServerDispatcher_SetPendingRequestState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPendingRequestState'
func (*MockServerDispatcher_SetPendingRequestState_Call) Run ¶
func (_c *MockServerDispatcher_SetPendingRequestState_Call) Run(run func(stateHandler ocppj.ServerState)) *MockServerDispatcher_SetPendingRequestState_Call
func (*MockServerDispatcher_SetPendingRequestState_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_SetPendingRequestState_Call) RunAndReturn(run func(ocppj.ServerState)) *MockServerDispatcher_SetPendingRequestState_Call
type MockServerDispatcher_SetTimeout_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 (_c *MockServerDispatcher_SetTimeout_Call) Return() *MockServerDispatcher_SetTimeout_Call
func (*MockServerDispatcher_SetTimeout_Call) Run ¶
func (_c *MockServerDispatcher_SetTimeout_Call) Run(run func(timeout time.Duration)) *MockServerDispatcher_SetTimeout_Call
func (*MockServerDispatcher_SetTimeout_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *MockServerDispatcher_SetTimeout_Call
type MockServerDispatcher_Start_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 (_c *MockServerDispatcher_Start_Call) Return() *MockServerDispatcher_Start_Call
func (*MockServerDispatcher_Start_Call) Run ¶
func (_c *MockServerDispatcher_Start_Call) Run(run func()) *MockServerDispatcher_Start_Call
func (*MockServerDispatcher_Start_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_Start_Call) RunAndReturn(run func()) *MockServerDispatcher_Start_Call
type MockServerDispatcher_Stop_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 (_c *MockServerDispatcher_Stop_Call) Return() *MockServerDispatcher_Stop_Call
func (*MockServerDispatcher_Stop_Call) Run ¶
func (_c *MockServerDispatcher_Stop_Call) Run(run func()) *MockServerDispatcher_Stop_Call
func (*MockServerDispatcher_Stop_Call) RunAndReturn ¶
func (_c *MockServerDispatcher_Stop_Call) RunAndReturn(run func()) *MockServerDispatcher_Stop_Call
type MockServerQueueMap ¶
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 (_m *MockServerQueueMap) EXPECT() *MockServerQueueMap_Expecter
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 ¶
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 (_c *MockServerQueueMap_Add_Call) Return() *MockServerQueueMap_Add_Call
func (*MockServerQueueMap_Add_Call) Run ¶
func (_c *MockServerQueueMap_Add_Call) Run(run func(clientID string, queue ocppj.RequestQueue)) *MockServerQueueMap_Add_Call
func (*MockServerQueueMap_Add_Call) RunAndReturn ¶
func (_c *MockServerQueueMap_Add_Call) RunAndReturn(run func(string, ocppj.RequestQueue)) *MockServerQueueMap_Add_Call
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 ¶
func (_e *MockServerQueueMap_Expecter) Init() *MockServerQueueMap_Init_Call
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 ¶
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 (_c *MockServerQueueMap_GetOrCreate_Call) Return(_a0 ocppj.RequestQueue) *MockServerQueueMap_GetOrCreate_Call
func (*MockServerQueueMap_GetOrCreate_Call) Run ¶
func (_c *MockServerQueueMap_GetOrCreate_Call) Run(run func(clientID string)) *MockServerQueueMap_GetOrCreate_Call
func (*MockServerQueueMap_GetOrCreate_Call) RunAndReturn ¶
func (_c *MockServerQueueMap_GetOrCreate_Call) RunAndReturn(run func(string) ocppj.RequestQueue) *MockServerQueueMap_GetOrCreate_Call
type MockServerQueueMap_Get_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 (_c *MockServerQueueMap_Get_Call) Return(_a0 ocppj.RequestQueue, _a1 bool) *MockServerQueueMap_Get_Call
func (*MockServerQueueMap_Get_Call) Run ¶
func (_c *MockServerQueueMap_Get_Call) Run(run func(clientID string)) *MockServerQueueMap_Get_Call
func (*MockServerQueueMap_Get_Call) RunAndReturn ¶
func (_c *MockServerQueueMap_Get_Call) RunAndReturn(run func(string) (ocppj.RequestQueue, bool)) *MockServerQueueMap_Get_Call
type MockServerQueueMap_Init_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 (_c *MockServerQueueMap_Init_Call) Return() *MockServerQueueMap_Init_Call
func (*MockServerQueueMap_Init_Call) Run ¶
func (_c *MockServerQueueMap_Init_Call) Run(run func()) *MockServerQueueMap_Init_Call
func (*MockServerQueueMap_Init_Call) RunAndReturn ¶
func (_c *MockServerQueueMap_Init_Call) RunAndReturn(run func()) *MockServerQueueMap_Init_Call
type MockServerQueueMap_Remove_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 (_c *MockServerQueueMap_Remove_Call) Return() *MockServerQueueMap_Remove_Call
func (*MockServerQueueMap_Remove_Call) Run ¶
func (_c *MockServerQueueMap_Remove_Call) Run(run func(clientID string)) *MockServerQueueMap_Remove_Call
func (*MockServerQueueMap_Remove_Call) RunAndReturn ¶
func (_c *MockServerQueueMap_Remove_Call) RunAndReturn(run func(string)) *MockServerQueueMap_Remove_Call
type MockServerState ¶
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 (_m *MockServerState) EXPECT() *MockServerState_Expecter
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 ¶
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 (_c *MockServerState_AddPendingRequest_Call) Return() *MockServerState_AddPendingRequest_Call
func (*MockServerState_AddPendingRequest_Call) Run ¶
func (_c *MockServerState_AddPendingRequest_Call) Run(run func(clientID string, requestID string, req ocpp.Request)) *MockServerState_AddPendingRequest_Call
func (*MockServerState_AddPendingRequest_Call) RunAndReturn ¶
func (_c *MockServerState_AddPendingRequest_Call) RunAndReturn(run func(string, string, ocpp.Request)) *MockServerState_AddPendingRequest_Call
type MockServerState_ClearAllPendingRequests_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 (_c *MockServerState_ClearAllPendingRequests_Call) Return() *MockServerState_ClearAllPendingRequests_Call
func (*MockServerState_ClearAllPendingRequests_Call) Run ¶
func (_c *MockServerState_ClearAllPendingRequests_Call) Run(run func()) *MockServerState_ClearAllPendingRequests_Call
func (*MockServerState_ClearAllPendingRequests_Call) RunAndReturn ¶
func (_c *MockServerState_ClearAllPendingRequests_Call) RunAndReturn(run func()) *MockServerState_ClearAllPendingRequests_Call
type MockServerState_ClearClientPendingRequest_Call ¶
MockServerState_ClearClientPendingRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClearClientPendingRequest'
func (*MockServerState_ClearClientPendingRequest_Call) Run ¶
func (_c *MockServerState_ClearClientPendingRequest_Call) Run(run func(clientID string)) *MockServerState_ClearClientPendingRequest_Call
func (*MockServerState_ClearClientPendingRequest_Call) RunAndReturn ¶
func (_c *MockServerState_ClearClientPendingRequest_Call) RunAndReturn(run func(string)) *MockServerState_ClearClientPendingRequest_Call
type MockServerState_DeletePendingRequest_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 (_c *MockServerState_DeletePendingRequest_Call) Return() *MockServerState_DeletePendingRequest_Call
func (*MockServerState_DeletePendingRequest_Call) Run ¶
func (_c *MockServerState_DeletePendingRequest_Call) Run(run func(clientID string, requestID string)) *MockServerState_DeletePendingRequest_Call
func (*MockServerState_DeletePendingRequest_Call) RunAndReturn ¶
func (_c *MockServerState_DeletePendingRequest_Call) RunAndReturn(run func(string, string)) *MockServerState_DeletePendingRequest_Call
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 ¶
func (_e *MockServerState_Expecter) ClearAllPendingRequests() *MockServerState_ClearAllPendingRequests_Call
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 ¶
func (_e *MockServerState_Expecter) HasPendingRequests() *MockServerState_HasPendingRequests_Call
HasPendingRequests is a helper method to define mock.On call
type MockServerState_GetClientState_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 (_c *MockServerState_GetClientState_Call) Return(_a0 ocppj.ClientState) *MockServerState_GetClientState_Call
func (*MockServerState_GetClientState_Call) Run ¶
func (_c *MockServerState_GetClientState_Call) Run(run func(clientID string)) *MockServerState_GetClientState_Call
func (*MockServerState_GetClientState_Call) RunAndReturn ¶
func (_c *MockServerState_GetClientState_Call) RunAndReturn(run func(string) ocppj.ClientState) *MockServerState_GetClientState_Call
type MockServerState_HasPendingRequest_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 (_c *MockServerState_HasPendingRequest_Call) Return(_a0 bool) *MockServerState_HasPendingRequest_Call
func (*MockServerState_HasPendingRequest_Call) Run ¶
func (_c *MockServerState_HasPendingRequest_Call) Run(run func(clientID string)) *MockServerState_HasPendingRequest_Call
func (*MockServerState_HasPendingRequest_Call) RunAndReturn ¶
func (_c *MockServerState_HasPendingRequest_Call) RunAndReturn(run func(string) bool) *MockServerState_HasPendingRequest_Call
type MockServerState_HasPendingRequests_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 (_c *MockServerState_HasPendingRequests_Call) Return(_a0 bool) *MockServerState_HasPendingRequests_Call
func (*MockServerState_HasPendingRequests_Call) Run ¶
func (_c *MockServerState_HasPendingRequests_Call) Run(run func()) *MockServerState_HasPendingRequests_Call
func (*MockServerState_HasPendingRequests_Call) RunAndReturn ¶
func (_c *MockServerState_HasPendingRequests_Call) RunAndReturn(run func() bool) *MockServerState_HasPendingRequests_Call
type Mockdialector ¶
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 ¶
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 (_c *Mockdialector_Dialect_Call) Return(_a0 ocpp.Dialect) *Mockdialector_Dialect_Call
func (*Mockdialector_Dialect_Call) Run ¶
func (_c *Mockdialector_Dialect_Call) Run(run func()) *Mockdialector_Dialect_Call
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 ¶
func (_e *Mockdialector_Expecter) Dialect() *Mockdialector_Dialect_Call
Dialect is a helper method to define mock.On call
Source Files
¶
- mock_CanceledRequestHandler.go
- mock_ClientDispatcher.go
- mock_ClientHandler.go
- mock_ClientState.go
- mock_ErrorHandler.go
- mock_InvalidMessageHook.go
- mock_Message.go
- mock_RequestHandler.go
- mock_RequestQueue.go
- mock_ResponseHandler.go
- mock_ServerDispatcher.go
- mock_ServerQueueMap.go
- mock_ServerState.go
- mock_dialector.go