mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-19 22:36:38 +00:00
* Run go fmt * Generated by GitHub Actions (go / generate) https://github.com/int128/kubelogin/actions/runs/4971610724 --------- Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
76 lines
1.9 KiB
Go
76 lines
1.9 KiB
Go
// Code generated by mockery v2.13.1. DO NOT EDIT.
|
|
|
|
package credentialplugin
|
|
|
|
import (
|
|
context "context"
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockInterface is an autogenerated mock type for the Interface type
|
|
type MockInterface struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockInterface_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockInterface) EXPECT() *MockInterface_Expecter {
|
|
return &MockInterface_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// Do provides a mock function with given fields: ctx, in
|
|
func (_m *MockInterface) Do(ctx context.Context, in Input) error {
|
|
ret := _m.Called(ctx, in)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, Input) error); ok {
|
|
r0 = rf(ctx, in)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// MockInterface_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
|
|
type MockInterface_Do_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// Do is a helper method to define mock.On call
|
|
// - ctx context.Context
|
|
// - in Input
|
|
func (_e *MockInterface_Expecter) Do(ctx interface{}, in interface{}) *MockInterface_Do_Call {
|
|
return &MockInterface_Do_Call{Call: _e.mock.On("Do", ctx, in)}
|
|
}
|
|
|
|
func (_c *MockInterface_Do_Call) Run(run func(ctx context.Context, in Input)) *MockInterface_Do_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(context.Context), args[1].(Input))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockInterface_Do_Call) Return(_a0 error) *MockInterface_Do_Call {
|
|
_c.Call.Return(_a0)
|
|
return _c
|
|
}
|
|
|
|
type mockConstructorTestingTNewMockInterface interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface {
|
|
mock := &MockInterface{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|