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

     1  // Automatically generated by MockGen. DO NOT EDIT!
     2  // Source: github.com/abhinav/git-pr/pr (interfaces: Visitor)
     3  
     4  package prtest
     5  
     6  import (
     7  	pr "github.com/abhinav/git-pr/pr"
     8  	github "github.com/google/go-github/github"
     9  	gomock "github.com/golang/mock/gomock"
    10  )
    11  
    12  // Mock of Visitor interface
    13  type MockVisitor struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *_MockVisitorRecorder
    16  }
    17  
    18  // Recorder for MockVisitor (not exported)
    19  type _MockVisitorRecorder struct {
    20  	mock *MockVisitor
    21  }
    22  
    23  func NewMockVisitor(ctrl *gomock.Controller) *MockVisitor {
    24  	mock := &MockVisitor{ctrl: ctrl}
    25  	mock.recorder = &_MockVisitorRecorder{mock}
    26  	return mock
    27  }
    28  
    29  func (_m *MockVisitor) EXPECT() *_MockVisitorRecorder {
    30  	return _m.recorder
    31  }
    32  
    33  func (_m *MockVisitor) Visit(_param0 *github.PullRequest) (pr.Visitor, error) {
    34  	ret := _m.ctrl.Call(_m, "Visit", _param0)
    35  	ret0, _ := ret[0].(pr.Visitor)
    36  	ret1, _ := ret[1].(error)
    37  	return ret0, ret1
    38  }
    39  
    40  func (_mr *_MockVisitorRecorder) Visit(arg0 interface{}) *gomock.Call {
    41  	return _mr.mock.ctrl.RecordCall(_mr.mock, "Visit", arg0)
    42  }