github.com/kubeshop/testkube@v1.17.23/pkg/executor/scraper/mock_scraper.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeshop/testkube/pkg/executor/scraper (interfaces: Scraper) 3 4 // Package scraper is a generated GoMock package. 5 package scraper 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 testkube "github.com/kubeshop/testkube/pkg/api/v1/testkube" 13 ) 14 15 // MockScraper is a mock of Scraper interface. 16 type MockScraper struct { 17 ctrl *gomock.Controller 18 recorder *MockScraperMockRecorder 19 } 20 21 // MockScraperMockRecorder is the mock recorder for MockScraper. 22 type MockScraperMockRecorder struct { 23 mock *MockScraper 24 } 25 26 // NewMockScraper creates a new mock instance. 27 func NewMockScraper(ctrl *gomock.Controller) *MockScraper { 28 mock := &MockScraper{ctrl: ctrl} 29 mock.recorder = &MockScraperMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockScraper) EXPECT() *MockScraperMockRecorder { 35 return m.recorder 36 } 37 38 // Close mocks base method. 39 func (m *MockScraper) Close() error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Close") 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // Close indicates an expected call of Close. 47 func (mr *MockScraperMockRecorder) Close() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockScraper)(nil).Close)) 50 } 51 52 // Scrape mocks base method. 53 func (m *MockScraper) Scrape(arg0 context.Context, arg1, arg2 []string, arg3 testkube.Execution) error { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "Scrape", arg0, arg1, arg2, arg3) 56 ret0, _ := ret[0].(error) 57 return ret0 58 } 59 60 // Scrape indicates an expected call of Scrape. 61 func (mr *MockScraperMockRecorder) Scrape(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Scrape", reflect.TypeOf((*MockScraper)(nil).Scrape), arg0, arg1, arg2, arg3) 64 }