github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/integration/agentharness/action_middleware_mock.go (about) 1 // Copyright (c) 2022, R.I. Pienaar and the Choria Project contributors 2 // 3 // SPDX-License-Identifier: Apache-2.0 4 5 // Code generated by MockGen. DO NOT EDIT. 6 // Source: agent.go 7 8 // mockgen --source agent.go --package testagent 9 10 // Package mockagent is a generated GoMock package. 11 package agentharness 12 13 import ( 14 context "context" 15 reflect "reflect" 16 17 inter "github.com/choria-io/go-choria/inter" 18 mcorpc "github.com/choria-io/go-choria/providers/agent/mcorpc" 19 gomock "github.com/golang/mock/gomock" 20 ) 21 22 // MockActionMiddleware is a mock of ActionMiddleware interface. 23 type MockActionMiddleware struct { 24 ctrl *gomock.Controller 25 recorder *MockActionMiddlewareMockRecorder 26 } 27 28 // MockActionMiddlewareMockRecorder is the mock recorder for MockActionMiddleware. 29 type MockActionMiddlewareMockRecorder struct { 30 mock *MockActionMiddleware 31 } 32 33 // NewMockActionMiddleware creates a new mock instance. 34 func NewMockActionMiddleware(ctrl *gomock.Controller) *MockActionMiddleware { 35 mock := &MockActionMiddleware{ctrl: ctrl} 36 mock.recorder = &MockActionMiddlewareMockRecorder{mock} 37 return mock 38 } 39 40 // EXPECT returns an object that allows the caller to indicate expected use. 41 func (m *MockActionMiddleware) EXPECT() *MockActionMiddlewareMockRecorder { 42 return m.recorder 43 } 44 45 // Action mocks base method. 46 func (m *MockActionMiddleware) Action(ctx context.Context, req *mcorpc.Request, rep *mcorpc.Reply, agent *mcorpc.Agent, conn inter.ConnectorInfo) { 47 m.ctrl.T.Helper() 48 m.ctrl.Call(m, "Action", ctx, req, rep, agent, conn) 49 } 50 51 // Action indicates an expected call of Action. 52 func (mr *MockActionMiddlewareMockRecorder) Action(ctx, req, rep, agent, conn any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Action", reflect.TypeOf((*MockActionMiddleware)(nil).Action), ctx, req, rep, agent, conn) 55 }