github.com/abhinav/git-pr@v0.6.1-0.20171029234004-54218d68c11b/editor/editortest/mocks.go (about) 1 // Automatically generated by MockGen. DO NOT EDIT! 2 // Source: github.com/abhinav/git-pr/editor (interfaces: Editor) 3 4 package editortest 5 6 import ( 7 gomock "github.com/golang/mock/gomock" 8 ) 9 10 // Mock of Editor interface 11 type MockEditor struct { 12 ctrl *gomock.Controller 13 recorder *_MockEditorRecorder 14 } 15 16 // Recorder for MockEditor (not exported) 17 type _MockEditorRecorder struct { 18 mock *MockEditor 19 } 20 21 func NewMockEditor(ctrl *gomock.Controller) *MockEditor { 22 mock := &MockEditor{ctrl: ctrl} 23 mock.recorder = &_MockEditorRecorder{mock} 24 return mock 25 } 26 27 func (_m *MockEditor) EXPECT() *_MockEditorRecorder { 28 return _m.recorder 29 } 30 31 func (_m *MockEditor) EditString(_param0 string) (string, error) { 32 ret := _m.ctrl.Call(_m, "EditString", _param0) 33 ret0, _ := ret[0].(string) 34 ret1, _ := ret[1].(error) 35 return ret0, ret1 36 } 37 38 func (_mr *_MockEditorRecorder) EditString(arg0 interface{}) *gomock.Call { 39 return _mr.mock.ctrl.RecordCall(_mr.mock, "EditString", arg0) 40 }