github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/azure/mock_azure/api_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/web-platform-tests/wpt.fyi/api/azure (interfaces: API) 3 4 // Package mock_azure is a generated GoMock package. 5 package mock_azure 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 azure "github.com/web-platform-tests/wpt.fyi/api/azure" 12 ) 13 14 // MockAPI is a mock of API interface. 15 type MockAPI struct { 16 ctrl *gomock.Controller 17 recorder *MockAPIMockRecorder 18 } 19 20 // MockAPIMockRecorder is the mock recorder for MockAPI. 21 type MockAPIMockRecorder struct { 22 mock *MockAPI 23 } 24 25 // NewMockAPI creates a new mock instance. 26 func NewMockAPI(ctrl *gomock.Controller) *MockAPI { 27 mock := &MockAPI{ctrl: ctrl} 28 mock.recorder = &MockAPIMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockAPI) EXPECT() *MockAPIMockRecorder { 34 return m.recorder 35 } 36 37 // GetAzureArtifactsURL mocks base method. 38 func (m *MockAPI) GetAzureArtifactsURL(arg0, arg1 string, arg2 int64) string { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "GetAzureArtifactsURL", arg0, arg1, arg2) 41 ret0, _ := ret[0].(string) 42 return ret0 43 } 44 45 // GetAzureArtifactsURL indicates an expected call of GetAzureArtifactsURL. 46 func (mr *MockAPIMockRecorder) GetAzureArtifactsURL(arg0, arg1, arg2 interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAzureArtifactsURL", reflect.TypeOf((*MockAPI)(nil).GetAzureArtifactsURL), arg0, arg1, arg2) 49 } 50 51 // GetBuild mocks base method. 52 func (m *MockAPI) GetBuild(arg0, arg1 string, arg2 int64) (*azure.Build, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "GetBuild", arg0, arg1, arg2) 55 ret0, _ := ret[0].(*azure.Build) 56 ret1, _ := ret[1].(error) 57 return ret0, ret1 58 } 59 60 // GetBuild indicates an expected call of GetBuild. 61 func (mr *MockAPIMockRecorder) GetBuild(arg0, arg1, arg2 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuild", reflect.TypeOf((*MockAPI)(nil).GetBuild), arg0, arg1, arg2) 64 } 65 66 // GetBuildURL mocks base method. 67 func (m *MockAPI) GetBuildURL(arg0, arg1 string, arg2 int64) string { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "GetBuildURL", arg0, arg1, arg2) 70 ret0, _ := ret[0].(string) 71 return ret0 72 } 73 74 // GetBuildURL indicates an expected call of GetBuildURL. 75 func (mr *MockAPIMockRecorder) GetBuildURL(arg0, arg1, arg2 interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBuildURL", reflect.TypeOf((*MockAPI)(nil).GetBuildURL), arg0, arg1, arg2) 78 }