add csi-test to vendor
This commit is contained in:
3
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/generate.go
generated
vendored
Normal file
3
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/generate.go
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
//go:generate mockgen -destination subdir/internal/pkg/reflect_output/mock.go github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg Intf
|
||||
//go:generate mockgen -source subdir/internal/pkg/input.go -destination subdir/internal/pkg/source_output/mock.go
|
||||
package test
|
9
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go
generated
vendored
Normal file
9
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/input.go
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package pkg
|
||||
|
||||
type Arg interface {
|
||||
Foo() int
|
||||
}
|
||||
|
||||
type Intf interface {
|
||||
F() Arg
|
||||
}
|
46
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go
generated
vendored
Normal file
46
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/reflect_output/mock.go
generated
vendored
Normal file
@@ -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))
|
||||
}
|
81
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go
generated
vendored
Normal file
81
vendor/github.com/golang/mock/mockgen/tests/internal_pkg/subdir/internal/pkg/source_output/mock.go
generated
vendored
Normal file
@@ -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))
|
||||
}
|
Reference in New Issue
Block a user