github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/taskcluster/mock_taskcluster/webhook_mock.go (about)

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