// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "bnema.dev/ermite/internal/domain" mock "github.com/stretchr/testify/mock" ) // NewKeyInspector creates a new instance of KeyInspector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewKeyInspector(t interface { mock.TestingT Cleanup(func()) }) *KeyInspector { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &KeyInspector{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // KeyInspector is an autogenerated mock type for the KeyInspector type type KeyInspector struct { mock.Mock } type KeyInspector_Expecter struct { mock *mock.Mock } func (_m *KeyInspector) EXPECT() *KeyInspector_Expecter { return &KeyInspector_Expecter{mock: &_m.Mock} } // Inspect provides a mock function for the type KeyInspector func (_mock *KeyInspector) Inspect(format domain.SignatureFormat, publicKey string) (string, string, error) { ret := _mock.Called(format, publicKey) if len(ret) == 0 { panic("no return value specified for Inspect") } var r0 string var r1 string var r2 error if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) (string, string, error)); ok { return returnFunc(format, publicKey) } if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) string); ok { r0 = returnFunc(format, publicKey) } else { r0 = ret.Get(0).(string) } if returnFunc, ok := ret.Get(1).(func(domain.SignatureFormat, string) string); ok { r1 = returnFunc(format, publicKey) } else { r1 = ret.Get(1).(string) } if returnFunc, ok := ret.Get(2).(func(domain.SignatureFormat, string) error); ok { r2 = returnFunc(format, publicKey) } else { r2 = ret.Error(2) } return r0, r1, r2 } // KeyInspector_Inspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inspect' type KeyInspector_Inspect_Call struct { *mock.Call } // Inspect is a helper method to define mock.On call // - format domain.SignatureFormat // - publicKey string func (_e *KeyInspector_Expecter) Inspect(format any, publicKey any) *KeyInspector_Inspect_Call { return &KeyInspector_Inspect_Call{Call: _e.mock.On("Inspect", format, publicKey)} } func (_c *KeyInspector_Inspect_Call) Run(run func(format domain.SignatureFormat, publicKey string)) *KeyInspector_Inspect_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 domain.SignatureFormat if args[0] != nil { arg0 = args[0].(domain.SignatureFormat) } var arg1 string if args[1] != nil { arg1 = args[1].(string) } run( arg0, arg1, ) }) return _c } func (_c *KeyInspector_Inspect_Call) Return(id string, canonical string, err error) *KeyInspector_Inspect_Call { _c.Call.Return(id, canonical, err) return _c } func (_c *KeyInspector_Inspect_Call) RunAndReturn(run func(format domain.SignatureFormat, publicKey string) (string, string, error)) *KeyInspector_Inspect_Call { _c.Call.Return(run) return _c }