From 621e49bb465f500cc46d47e39e828cf76d6381d7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 24 Jul 2018 14:35:44 +0200 Subject: update vendor --- .../internal_pkg/subdir/internal/pkg/input.go | 9 +++ .../subdir/internal/pkg/reflect_output/mock.go | 46 ++++++++++++ .../subdir/internal/pkg/source_output/mock.go | 81 ++++++++++++++++++++++ 3 files changed, 136 insertions(+) create mode 100644 vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go create mode 100644 vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go create mode 100644 vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go (limited to 'vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg') diff --git a/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go new file mode 100644 index 0000000..d05f6a7 --- /dev/null +++ b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go @@ -0,0 +1,9 @@ +package pkg + +type Arg interface { + Foo() int +} + +type Intf interface { + F() Arg +} diff --git a/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go new file mode 100644 index 0000000..47ccf0c --- /dev/null +++ b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go @@ -0,0 +1,46 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg (interfaces: Intf) + +// Package mock_pkg is a generated GoMock package. +package mock_pkg + +import ( + gomock "github.com/golang/mock/gomock" + pkg "github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg" + reflect "reflect" +) + +// MockIntf is a mock of Intf interface +type MockIntf struct { + ctrl *gomock.Controller + recorder *MockIntfMockRecorder +} + +// MockIntfMockRecorder is the mock recorder for MockIntf +type MockIntfMockRecorder struct { + mock *MockIntf +} + +// NewMockIntf creates a new mock instance +func NewMockIntf(ctrl *gomock.Controller) *MockIntf { + mock := &MockIntf{ctrl: ctrl} + mock.recorder = &MockIntfMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use +func (m *MockIntf) EXPECT() *MockIntfMockRecorder { + return m.recorder +} + +// F mocks base method +func (m *MockIntf) F() pkg.Arg { + ret := m.ctrl.Call(m, "F") + ret0, _ := ret[0].(pkg.Arg) + return ret0 +} + +// F indicates an expected call of F +func (mr *MockIntfMockRecorder) F() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "F", reflect.TypeOf((*MockIntf)(nil).F)) +} diff --git a/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go new file mode 100644 index 0000000..32595ab --- /dev/null +++ b/vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go @@ -0,0 +1,81 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: subdir/internal/pkg/input.go + +// Package mock_pkg is a generated GoMock package. +package mock_pkg + +import ( + gomock "github.com/golang/mock/gomock" + pkg "github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg" + reflect "reflect" +) + +// MockArg is a mock of Arg interface +type MockArg struct { + ctrl *gomock.Controller + recorder *MockArgMockRecorder +} + +// MockArgMockRecorder is the mock recorder for MockArg +type MockArgMockRecorder struct { + mock *MockArg +} + +// NewMockArg creates a new mock instance +func NewMockArg(ctrl *gomock.Controller) *MockArg { + mock := &MockArg{ctrl: ctrl} + mock.recorder = &MockArgMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use +func (m *MockArg) EXPECT() *MockArgMockRecorder { + return m.recorder +} + +// Foo mocks base method +func (m *MockArg) Foo() int { + ret := m.ctrl.Call(m, "Foo") + ret0, _ := ret[0].(int) + return ret0 +} + +// Foo indicates an expected call of Foo +func (mr *MockArgMockRecorder) Foo() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Foo", reflect.TypeOf((*MockArg)(nil).Foo)) +} + +// MockIntf is a mock of Intf interface +type MockIntf struct { + ctrl *gomock.Controller + recorder *MockIntfMockRecorder +} + +// MockIntfMockRecorder is the mock recorder for MockIntf +type MockIntfMockRecorder struct { + mock *MockIntf +} + +// NewMockIntf creates a new mock instance +func NewMockIntf(ctrl *gomock.Controller) *MockIntf { + mock := &MockIntf{ctrl: ctrl} + mock.recorder = &MockIntfMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use +func (m *MockIntf) EXPECT() *MockIntfMockRecorder { + return m.recorder +} + +// F mocks base method +func (m *MockIntf) F() pkg.Arg { + ret := m.ctrl.Call(m, "F") + ret0, _ := ret[0].(pkg.Arg) + return ret0 +} + +// F indicates an expected call of F +func (mr *MockIntfMockRecorder) F() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "F", reflect.TypeOf((*MockIntf)(nil).F)) +} -- cgit v1.2.3