github.com/deadlysurgeon/weather@v0.0.0-20240402201029-3925d9f784b1/weather/mock/weather.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: weather.go 3 // 4 // Generated by this command: 5 // 6 // mockgen -source=weather.go -package=mock -destination=mock/weather.go 7 // 8 9 // Package mock is a generated GoMock package. 10 package mock 11 12 import ( 13 reflect "reflect" 14 15 weather "github.com/deadlysurgeon/weather/weather" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockService is a mock of Service interface. 20 type MockService struct { 21 ctrl *gomock.Controller 22 recorder *MockServiceMockRecorder 23 } 24 25 // MockServiceMockRecorder is the mock recorder for MockService. 26 type MockServiceMockRecorder struct { 27 mock *MockService 28 } 29 30 // NewMockService creates a new mock instance. 31 func NewMockService(ctrl *gomock.Controller) *MockService { 32 mock := &MockService{ctrl: ctrl} 33 mock.recorder = &MockServiceMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockService) EXPECT() *MockServiceMockRecorder { 39 return m.recorder 40 } 41 42 // At mocks base method. 43 func (m *MockService) At(lat, long string) (weather.Report, error) { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "At", lat, long) 46 ret0, _ := ret[0].(weather.Report) 47 ret1, _ := ret[1].(error) 48 return ret0, ret1 49 } 50 51 // At indicates an expected call of At. 52 func (mr *MockServiceMockRecorder) At(lat, long any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "At", reflect.TypeOf((*MockService)(nil).At), lat, long) 55 }