github.com/abhinav/git-fu@v0.6.1-0.20171029234004-54218d68c11b/github/mocks_test.go (about)

     1  // Automatically generated by MockGen. DO NOT EDIT!
     2  // Source: github.com/abhinav/git-pr/github (interfaces: GitService,PullRequestsService)
     3  
     4  package github
     5  
     6  import (
     7  	context "context"
     8  	github "github.com/google/go-github/github"
     9  	gomock "github.com/golang/mock/gomock"
    10  )
    11  
    12  // Mock of GitService interface
    13  type MockGitService struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *_MockGitServiceRecorder
    16  }
    17  
    18  // Recorder for MockGitService (not exported)
    19  type _MockGitServiceRecorder struct {
    20  	mock *MockGitService
    21  }
    22  
    23  func NewMockGitService(ctrl *gomock.Controller) *MockGitService {
    24  	mock := &MockGitService{ctrl: ctrl}
    25  	mock.recorder = &_MockGitServiceRecorder{mock}
    26  	return mock
    27  }
    28  
    29  func (_m *MockGitService) EXPECT() *_MockGitServiceRecorder {
    30  	return _m.recorder
    31  }
    32  
    33  func (_m *MockGitService) DeleteRef(_param0 context.Context, _param1 string, _param2 string, _param3 string) (*github.Response, error) {
    34  	ret := _m.ctrl.Call(_m, "DeleteRef", _param0, _param1, _param2, _param3)
    35  	ret0, _ := ret[0].(*github.Response)
    36  	ret1, _ := ret[1].(error)
    37  	return ret0, ret1
    38  }
    39  
    40  func (_mr *_MockGitServiceRecorder) DeleteRef(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    41  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteRef", arg0, arg1, arg2, arg3)
    42  }
    43  
    44  // Mock of PullRequestsService interface
    45  type MockPullRequestsService struct {
    46  	ctrl     *gomock.Controller
    47  	recorder *_MockPullRequestsServiceRecorder
    48  }
    49  
    50  // Recorder for MockPullRequestsService (not exported)
    51  type _MockPullRequestsServiceRecorder struct {
    52  	mock *MockPullRequestsService
    53  }
    54  
    55  func NewMockPullRequestsService(ctrl *gomock.Controller) *MockPullRequestsService {
    56  	mock := &MockPullRequestsService{ctrl: ctrl}
    57  	mock.recorder = &_MockPullRequestsServiceRecorder{mock}
    58  	return mock
    59  }
    60  
    61  func (_m *MockPullRequestsService) EXPECT() *_MockPullRequestsServiceRecorder {
    62  	return _m.recorder
    63  }
    64  
    65  func (_m *MockPullRequestsService) Edit(_param0 context.Context, _param1 string, _param2 string, _param3 int, _param4 *github.PullRequest) (*github.PullRequest, *github.Response, error) {
    66  	ret := _m.ctrl.Call(_m, "Edit", _param0, _param1, _param2, _param3, _param4)
    67  	ret0, _ := ret[0].(*github.PullRequest)
    68  	ret1, _ := ret[1].(*github.Response)
    69  	ret2, _ := ret[2].(error)
    70  	return ret0, ret1, ret2
    71  }
    72  
    73  func (_mr *_MockPullRequestsServiceRecorder) Edit(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    74  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Edit", arg0, arg1, arg2, arg3, arg4)
    75  }
    76  
    77  func (_m *MockPullRequestsService) GetRaw(_param0 context.Context, _param1 string, _param2 string, _param3 int, _param4 github.RawOptions) (string, *github.Response, error) {
    78  	ret := _m.ctrl.Call(_m, "GetRaw", _param0, _param1, _param2, _param3, _param4)
    79  	ret0, _ := ret[0].(string)
    80  	ret1, _ := ret[1].(*github.Response)
    81  	ret2, _ := ret[2].(error)
    82  	return ret0, ret1, ret2
    83  }
    84  
    85  func (_mr *_MockPullRequestsServiceRecorder) GetRaw(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
    86  	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetRaw", arg0, arg1, arg2, arg3, arg4)
    87  }
    88  
    89  func (_m *MockPullRequestsService) List(_param0 context.Context, _param1 string, _param2 string, _param3 *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) {
    90  	ret := _m.ctrl.Call(_m, "List", _param0, _param1, _param2, _param3)
    91  	ret0, _ := ret[0].([]*github.PullRequest)
    92  	ret1, _ := ret[1].(*github.Response)
    93  	ret2, _ := ret[2].(error)
    94  	return ret0, ret1, ret2
    95  }
    96  
    97  func (_mr *_MockPullRequestsServiceRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    98  	return _mr.mock.ctrl.RecordCall(_mr.mock, "List", arg0, arg1, arg2, arg3)
    99  }
   100  
   101  func (_m *MockPullRequestsService) ListReviews(_param0 context.Context, _param1 string, _param2 string, _param3 int) ([]*github.PullRequestReview, *github.Response, error) {
   102  	ret := _m.ctrl.Call(_m, "ListReviews", _param0, _param1, _param2, _param3)
   103  	ret0, _ := ret[0].([]*github.PullRequestReview)
   104  	ret1, _ := ret[1].(*github.Response)
   105  	ret2, _ := ret[2].(error)
   106  	return ret0, ret1, ret2
   107  }
   108  
   109  func (_mr *_MockPullRequestsServiceRecorder) ListReviews(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   110  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ListReviews", arg0, arg1, arg2, arg3)
   111  }
   112  
   113  func (_m *MockPullRequestsService) Merge(_param0 context.Context, _param1 string, _param2 string, _param3 int, _param4 string, _param5 *github.PullRequestOptions) (*github.PullRequestMergeResult, *github.Response, error) {
   114  	ret := _m.ctrl.Call(_m, "Merge", _param0, _param1, _param2, _param3, _param4, _param5)
   115  	ret0, _ := ret[0].(*github.PullRequestMergeResult)
   116  	ret1, _ := ret[1].(*github.Response)
   117  	ret2, _ := ret[2].(error)
   118  	return ret0, ret1, ret2
   119  }
   120  
   121  func (_mr *_MockPullRequestsServiceRecorder) Merge(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
   122  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Merge", arg0, arg1, arg2, arg3, arg4, arg5)
   123  }