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

     1  // Automatically generated by MockGen. DO NOT EDIT!
     2  // Source: github.com/abhinav/git-pr/service (interfaces: PR)
     3  
     4  package servicetest
     5  
     6  import (
     7  	context "context"
     8  	service "github.com/abhinav/git-pr/service"
     9  	gomock "github.com/golang/mock/gomock"
    10  )
    11  
    12  // Mock of PR interface
    13  type MockPR struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *_MockPRRecorder
    16  }
    17  
    18  // Recorder for MockPR (not exported)
    19  type _MockPRRecorder struct {
    20  	mock *MockPR
    21  }
    22  
    23  func NewMockPR(ctrl *gomock.Controller) *MockPR {
    24  	mock := &MockPR{ctrl: ctrl}
    25  	mock.recorder = &_MockPRRecorder{mock}
    26  	return mock
    27  }
    28  
    29  func (_m *MockPR) EXPECT() *_MockPRRecorder {
    30  	return _m.recorder
    31  }
    32  
    33  func (_m *MockPR) Land(_param0 context.Context, _param1 *service.LandRequest) (*service.LandResponse, error) {
    34  	ret := _m.ctrl.Call(_m, "Land", _param0, _param1)
    35  	ret0, _ := ret[0].(*service.LandResponse)
    36  	ret1, _ := ret[1].(error)
    37  	return ret0, ret1
    38  }
    39  
    40  func (_mr *_MockPRRecorder) Land(arg0, arg1 interface{}) *gomock.Call {
    41  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Land", arg0, arg1)
    42  }
    43  
    44  func (_m *MockPR) Rebase(_param0 context.Context, _param1 *service.RebaseRequest) (*service.RebaseResponse, error) {
    45  	ret := _m.ctrl.Call(_m, "Rebase", _param0, _param1)
    46  	ret0, _ := ret[0].(*service.RebaseResponse)
    47  	ret1, _ := ret[1].(error)
    48  	return ret0, ret1
    49  }
    50  
    51  func (_mr *_MockPRRecorder) Rebase(arg0, arg1 interface{}) *gomock.Call {
    52  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Rebase", arg0, arg1)
    53  }