github.com/abhinav/git-pr@v0.6.1-0.20171029234004-54218d68c11b/gateway/gatewaytest/mocks.go (about)

     1  // Automatically generated by MockGen. DO NOT EDIT!
     2  // Source: github.com/abhinav/git-pr/gateway (interfaces: Git,GitHub)
     3  
     4  package gatewaytest
     5  
     6  import (
     7  	context "context"
     8  	gateway "github.com/abhinav/git-pr/gateway"
     9  	github "github.com/google/go-github/github"
    10  	gomock "github.com/golang/mock/gomock"
    11  )
    12  
    13  // Mock of Git interface
    14  type MockGit struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *_MockGitRecorder
    17  }
    18  
    19  // Recorder for MockGit (not exported)
    20  type _MockGitRecorder struct {
    21  	mock *MockGit
    22  }
    23  
    24  func NewMockGit(ctrl *gomock.Controller) *MockGit {
    25  	mock := &MockGit{ctrl: ctrl}
    26  	mock.recorder = &_MockGitRecorder{mock}
    27  	return mock
    28  }
    29  
    30  func (_m *MockGit) EXPECT() *_MockGitRecorder {
    31  	return _m.recorder
    32  }
    33  
    34  func (_m *MockGit) Checkout(_param0 string) error {
    35  	ret := _m.ctrl.Call(_m, "Checkout", _param0)
    36  	ret0, _ := ret[0].(error)
    37  	return ret0
    38  }
    39  
    40  func (_mr *_MockGitRecorder) Checkout(arg0 interface{}) *gomock.Call {
    41  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Checkout", arg0)
    42  }
    43  
    44  func (_m *MockGit) CreateBranch(_param0 string, _param1 string) error {
    45  	ret := _m.ctrl.Call(_m, "CreateBranch", _param0, _param1)
    46  	ret0, _ := ret[0].(error)
    47  	return ret0
    48  }
    49  
    50  func (_mr *_MockGitRecorder) CreateBranch(arg0, arg1 interface{}) *gomock.Call {
    51  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateBranch", arg0, arg1)
    52  }
    53  
    54  func (_m *MockGit) CreateBranchAndCheckout(_param0 string, _param1 string) error {
    55  	ret := _m.ctrl.Call(_m, "CreateBranchAndCheckout", _param0, _param1)
    56  	ret0, _ := ret[0].(error)
    57  	return ret0
    58  }
    59  
    60  func (_mr *_MockGitRecorder) CreateBranchAndCheckout(arg0, arg1 interface{}) *gomock.Call {
    61  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateBranchAndCheckout", arg0, arg1)
    62  }
    63  
    64  func (_m *MockGit) CurrentBranch() (string, error) {
    65  	ret := _m.ctrl.Call(_m, "CurrentBranch")
    66  	ret0, _ := ret[0].(string)
    67  	ret1, _ := ret[1].(error)
    68  	return ret0, ret1
    69  }
    70  
    71  func (_mr *_MockGitRecorder) CurrentBranch() *gomock.Call {
    72  	return _mr.mock.ctrl.RecordCall(_mr.mock, "CurrentBranch")
    73  }
    74  
    75  func (_m *MockGit) DeleteBranch(_param0 string) error {
    76  	ret := _m.ctrl.Call(_m, "DeleteBranch", _param0)
    77  	ret0, _ := ret[0].(error)
    78  	return ret0
    79  }
    80  
    81  func (_mr *_MockGitRecorder) DeleteBranch(arg0 interface{}) *gomock.Call {
    82  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteBranch", arg0)
    83  }
    84  
    85  func (_m *MockGit) DeleteRemoteTrackingBranch(_param0 string, _param1 string) error {
    86  	ret := _m.ctrl.Call(_m, "DeleteRemoteTrackingBranch", _param0, _param1)
    87  	ret0, _ := ret[0].(error)
    88  	return ret0
    89  }
    90  
    91  func (_mr *_MockGitRecorder) DeleteRemoteTrackingBranch(arg0, arg1 interface{}) *gomock.Call {
    92  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteRemoteTrackingBranch", arg0, arg1)
    93  }
    94  
    95  func (_m *MockGit) DoesBranchExist(_param0 string) bool {
    96  	ret := _m.ctrl.Call(_m, "DoesBranchExist", _param0)
    97  	ret0, _ := ret[0].(bool)
    98  	return ret0
    99  }
   100  
   101  func (_mr *_MockGitRecorder) DoesBranchExist(arg0 interface{}) *gomock.Call {
   102  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DoesBranchExist", arg0)
   103  }
   104  
   105  func (_m *MockGit) Fetch(_param0 *gateway.FetchRequest) error {
   106  	ret := _m.ctrl.Call(_m, "Fetch", _param0)
   107  	ret0, _ := ret[0].(error)
   108  	return ret0
   109  }
   110  
   111  func (_mr *_MockGitRecorder) Fetch(arg0 interface{}) *gomock.Call {
   112  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Fetch", arg0)
   113  }
   114  
   115  func (_m *MockGit) Pull(_param0 string, _param1 string) error {
   116  	ret := _m.ctrl.Call(_m, "Pull", _param0, _param1)
   117  	ret0, _ := ret[0].(error)
   118  	return ret0
   119  }
   120  
   121  func (_mr *_MockGitRecorder) Pull(arg0, arg1 interface{}) *gomock.Call {
   122  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Pull", arg0, arg1)
   123  }
   124  
   125  func (_m *MockGit) Push(_param0 *gateway.PushRequest) error {
   126  	ret := _m.ctrl.Call(_m, "Push", _param0)
   127  	ret0, _ := ret[0].(error)
   128  	return ret0
   129  }
   130  
   131  func (_mr *_MockGitRecorder) Push(arg0 interface{}) *gomock.Call {
   132  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Push", arg0)
   133  }
   134  
   135  func (_m *MockGit) Rebase(_param0 *gateway.RebaseRequest) error {
   136  	ret := _m.ctrl.Call(_m, "Rebase", _param0)
   137  	ret0, _ := ret[0].(error)
   138  	return ret0
   139  }
   140  
   141  func (_mr *_MockGitRecorder) Rebase(arg0 interface{}) *gomock.Call {
   142  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Rebase", arg0)
   143  }
   144  
   145  func (_m *MockGit) RemoteURL(_param0 string) (string, error) {
   146  	ret := _m.ctrl.Call(_m, "RemoteURL", _param0)
   147  	ret0, _ := ret[0].(string)
   148  	ret1, _ := ret[1].(error)
   149  	return ret0, ret1
   150  }
   151  
   152  func (_mr *_MockGitRecorder) RemoteURL(arg0 interface{}) *gomock.Call {
   153  	return _mr.mock.ctrl.RecordCall(_mr.mock, "RemoteURL", arg0)
   154  }
   155  
   156  func (_m *MockGit) ResetBranch(_param0 string, _param1 string) error {
   157  	ret := _m.ctrl.Call(_m, "ResetBranch", _param0, _param1)
   158  	ret0, _ := ret[0].(error)
   159  	return ret0
   160  }
   161  
   162  func (_mr *_MockGitRecorder) ResetBranch(arg0, arg1 interface{}) *gomock.Call {
   163  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ResetBranch", arg0, arg1)
   164  }
   165  
   166  func (_m *MockGit) SHA1(_param0 string) (string, error) {
   167  	ret := _m.ctrl.Call(_m, "SHA1", _param0)
   168  	ret0, _ := ret[0].(string)
   169  	ret1, _ := ret[1].(error)
   170  	return ret0, ret1
   171  }
   172  
   173  func (_mr *_MockGitRecorder) SHA1(arg0 interface{}) *gomock.Call {
   174  	return _mr.mock.ctrl.RecordCall(_mr.mock, "SHA1", arg0)
   175  }
   176  
   177  // Mock of GitHub interface
   178  type MockGitHub struct {
   179  	ctrl     *gomock.Controller
   180  	recorder *_MockGitHubRecorder
   181  }
   182  
   183  // Recorder for MockGitHub (not exported)
   184  type _MockGitHubRecorder struct {
   185  	mock *MockGitHub
   186  }
   187  
   188  func NewMockGitHub(ctrl *gomock.Controller) *MockGitHub {
   189  	mock := &MockGitHub{ctrl: ctrl}
   190  	mock.recorder = &_MockGitHubRecorder{mock}
   191  	return mock
   192  }
   193  
   194  func (_m *MockGitHub) EXPECT() *_MockGitHubRecorder {
   195  	return _m.recorder
   196  }
   197  
   198  func (_m *MockGitHub) DeleteBranch(_param0 context.Context, _param1 string) error {
   199  	ret := _m.ctrl.Call(_m, "DeleteBranch", _param0, _param1)
   200  	ret0, _ := ret[0].(error)
   201  	return ret0
   202  }
   203  
   204  func (_mr *_MockGitHubRecorder) DeleteBranch(arg0, arg1 interface{}) *gomock.Call {
   205  	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteBranch", arg0, arg1)
   206  }
   207  
   208  func (_m *MockGitHub) GetBuildStatus(_param0 context.Context, _param1 string) (*gateway.BuildStatus, error) {
   209  	ret := _m.ctrl.Call(_m, "GetBuildStatus", _param0, _param1)
   210  	ret0, _ := ret[0].(*gateway.BuildStatus)
   211  	ret1, _ := ret[1].(error)
   212  	return ret0, ret1
   213  }
   214  
   215  func (_mr *_MockGitHubRecorder) GetBuildStatus(arg0, arg1 interface{}) *gomock.Call {
   216  	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetBuildStatus", arg0, arg1)
   217  }
   218  
   219  func (_m *MockGitHub) GetPullRequestPatch(_param0 context.Context, _param1 int) (string, error) {
   220  	ret := _m.ctrl.Call(_m, "GetPullRequestPatch", _param0, _param1)
   221  	ret0, _ := ret[0].(string)
   222  	ret1, _ := ret[1].(error)
   223  	return ret0, ret1
   224  }
   225  
   226  func (_mr *_MockGitHubRecorder) GetPullRequestPatch(arg0, arg1 interface{}) *gomock.Call {
   227  	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetPullRequestPatch", arg0, arg1)
   228  }
   229  
   230  func (_m *MockGitHub) IsOwned(_param0 context.Context, _param1 *github.PullRequestBranch) bool {
   231  	ret := _m.ctrl.Call(_m, "IsOwned", _param0, _param1)
   232  	ret0, _ := ret[0].(bool)
   233  	return ret0
   234  }
   235  
   236  func (_mr *_MockGitHubRecorder) IsOwned(arg0, arg1 interface{}) *gomock.Call {
   237  	return _mr.mock.ctrl.RecordCall(_mr.mock, "IsOwned", arg0, arg1)
   238  }
   239  
   240  func (_m *MockGitHub) ListPullRequestReviews(_param0 context.Context, _param1 int) ([]*gateway.PullRequestReview, error) {
   241  	ret := _m.ctrl.Call(_m, "ListPullRequestReviews", _param0, _param1)
   242  	ret0, _ := ret[0].([]*gateway.PullRequestReview)
   243  	ret1, _ := ret[1].(error)
   244  	return ret0, ret1
   245  }
   246  
   247  func (_mr *_MockGitHubRecorder) ListPullRequestReviews(arg0, arg1 interface{}) *gomock.Call {
   248  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ListPullRequestReviews", arg0, arg1)
   249  }
   250  
   251  func (_m *MockGitHub) ListPullRequestsByBase(_param0 context.Context, _param1 string) ([]*github.PullRequest, error) {
   252  	ret := _m.ctrl.Call(_m, "ListPullRequestsByBase", _param0, _param1)
   253  	ret0, _ := ret[0].([]*github.PullRequest)
   254  	ret1, _ := ret[1].(error)
   255  	return ret0, ret1
   256  }
   257  
   258  func (_mr *_MockGitHubRecorder) ListPullRequestsByBase(arg0, arg1 interface{}) *gomock.Call {
   259  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ListPullRequestsByBase", arg0, arg1)
   260  }
   261  
   262  func (_m *MockGitHub) ListPullRequestsByHead(_param0 context.Context, _param1 string, _param2 string) ([]*github.PullRequest, error) {
   263  	ret := _m.ctrl.Call(_m, "ListPullRequestsByHead", _param0, _param1, _param2)
   264  	ret0, _ := ret[0].([]*github.PullRequest)
   265  	ret1, _ := ret[1].(error)
   266  	return ret0, ret1
   267  }
   268  
   269  func (_mr *_MockGitHubRecorder) ListPullRequestsByHead(arg0, arg1, arg2 interface{}) *gomock.Call {
   270  	return _mr.mock.ctrl.RecordCall(_mr.mock, "ListPullRequestsByHead", arg0, arg1, arg2)
   271  }
   272  
   273  func (_m *MockGitHub) SetPullRequestBase(_param0 context.Context, _param1 int, _param2 string) error {
   274  	ret := _m.ctrl.Call(_m, "SetPullRequestBase", _param0, _param1, _param2)
   275  	ret0, _ := ret[0].(error)
   276  	return ret0
   277  }
   278  
   279  func (_mr *_MockGitHubRecorder) SetPullRequestBase(arg0, arg1, arg2 interface{}) *gomock.Call {
   280  	return _mr.mock.ctrl.RecordCall(_mr.mock, "SetPullRequestBase", arg0, arg1, arg2)
   281  }
   282  
   283  func (_m *MockGitHub) SquashPullRequest(_param0 context.Context, _param1 *github.PullRequest) error {
   284  	ret := _m.ctrl.Call(_m, "SquashPullRequest", _param0, _param1)
   285  	ret0, _ := ret[0].(error)
   286  	return ret0
   287  }
   288  
   289  func (_mr *_MockGitHubRecorder) SquashPullRequest(arg0, arg1 interface{}) *gomock.Call {
   290  	return _mr.mock.ctrl.RecordCall(_mr.mock, "SquashPullRequest", arg0, arg1)
   291  }