github.com/kubeshop/testkube@v1.17.23/pkg/logs/client/mock_initializedstreampusher.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeshop/testkube/pkg/logs/client (interfaces: InitializedStreamPusher) 3 4 // Package client is a generated GoMock package. 5 package client 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 events "github.com/kubeshop/testkube/pkg/logs/events" 13 ) 14 15 // MockInitializedStreamPusher is a mock of InitializedStreamPusher interface. 16 type MockInitializedStreamPusher struct { 17 ctrl *gomock.Controller 18 recorder *MockInitializedStreamPusherMockRecorder 19 } 20 21 // MockInitializedStreamPusherMockRecorder is the mock recorder for MockInitializedStreamPusher. 22 type MockInitializedStreamPusherMockRecorder struct { 23 mock *MockInitializedStreamPusher 24 } 25 26 // NewMockInitializedStreamPusher creates a new mock instance. 27 func NewMockInitializedStreamPusher(ctrl *gomock.Controller) *MockInitializedStreamPusher { 28 mock := &MockInitializedStreamPusher{ctrl: ctrl} 29 mock.recorder = &MockInitializedStreamPusherMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockInitializedStreamPusher) EXPECT() *MockInitializedStreamPusherMockRecorder { 35 return m.recorder 36 } 37 38 // Init mocks base method. 39 func (m *MockInitializedStreamPusher) Init(arg0 context.Context, arg1 string) (StreamMetadata, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Init", arg0, arg1) 42 ret0, _ := ret[0].(StreamMetadata) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // Init indicates an expected call of Init. 48 func (mr *MockInitializedStreamPusherMockRecorder) Init(arg0, arg1 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockInitializedStreamPusher)(nil).Init), arg0, arg1) 51 } 52 53 // Push mocks base method. 54 func (m *MockInitializedStreamPusher) Push(arg0 context.Context, arg1 string, arg2 *events.Log) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Push", arg0, arg1, arg2) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // Push indicates an expected call of Push. 62 func (mr *MockInitializedStreamPusherMockRecorder) Push(arg0, arg1, arg2 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Push", reflect.TypeOf((*MockInitializedStreamPusher)(nil).Push), arg0, arg1, arg2) 65 } 66 67 // PushBytes mocks base method. 68 func (m *MockInitializedStreamPusher) PushBytes(arg0 context.Context, arg1 string, arg2 []byte) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "PushBytes", arg0, arg1, arg2) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // PushBytes indicates an expected call of PushBytes. 76 func (mr *MockInitializedStreamPusherMockRecorder) PushBytes(arg0, arg1, arg2 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PushBytes", reflect.TypeOf((*MockInitializedStreamPusher)(nil).PushBytes), arg0, arg1, arg2) 79 }