1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8 "bnema.dev/ermite/internal/domain"
9 mock "github.com/stretchr/testify/mock"
10)
11
12// 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.
13// The first argument is typically a *testing.T value.
14func NewKeyInspector(t interface {
15 mock.TestingT
16 Cleanup(func())
17}) *KeyInspector {
18 if helper, ok := t.(interface{ Helper() }); ok {
19 helper.Helper()
20 }
21
22 mock := &KeyInspector{}
23 mock.Mock.Test(t)
24
25 t.Cleanup(func() {
26 if helper, ok := t.(interface{ Helper() }); ok {
27 helper.Helper()
28 }
29 mock.AssertExpectations(t)
30 })
31
32 return mock
33}
34
35// KeyInspector is an autogenerated mock type for the KeyInspector type
36type KeyInspector struct {
37 mock.Mock
38}
39
40type KeyInspector_Expecter struct {
41 mock *mock.Mock
42}
43
44func (_m *KeyInspector) EXPECT() *KeyInspector_Expecter {
45 return &KeyInspector_Expecter{mock: &_m.Mock}
46}
47
48// Inspect provides a mock function for the type KeyInspector
49func (_mock *KeyInspector) Inspect(format domain.SignatureFormat, publicKey string) (string, string, error) {
50 ret := _mock.Called(format, publicKey)
51
52 if len(ret) == 0 {
53 panic("no return value specified for Inspect")
54 }
55
56 var r0 string
57 var r1 string
58 var r2 error
59 if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) (string, string, error)); ok {
60 return returnFunc(format, publicKey)
61 }
62 if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) string); ok {
63 r0 = returnFunc(format, publicKey)
64 } else {
65 r0 = ret.Get(0).(string)
66 }
67 if returnFunc, ok := ret.Get(1).(func(domain.SignatureFormat, string) string); ok {
68 r1 = returnFunc(format, publicKey)
69 } else {
70 r1 = ret.Get(1).(string)
71 }
72 if returnFunc, ok := ret.Get(2).(func(domain.SignatureFormat, string) error); ok {
73 r2 = returnFunc(format, publicKey)
74 } else {
75 r2 = ret.Error(2)
76 }
77 return r0, r1, r2
78}
79
80// KeyInspector_Inspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inspect'
81type KeyInspector_Inspect_Call struct {
82 *mock.Call
83}
84
85// Inspect is a helper method to define mock.On call
86// - format domain.SignatureFormat
87// - publicKey string
88func (_e *KeyInspector_Expecter) Inspect(format any, publicKey any) *KeyInspector_Inspect_Call {
89 return &KeyInspector_Inspect_Call{Call: _e.mock.On("Inspect", format, publicKey)}
90}
91
92func (_c *KeyInspector_Inspect_Call) Run(run func(format domain.SignatureFormat, publicKey string)) *KeyInspector_Inspect_Call {
93 _c.Call.Run(func(args mock.Arguments) {
94 var arg0 domain.SignatureFormat
95 if args[0] != nil {
96 arg0 = args[0].(domain.SignatureFormat)
97 }
98 var arg1 string
99 if args[1] != nil {
100 arg1 = args[1].(string)
101 }
102 run(
103 arg0,
104 arg1,
105 )
106 })
107 return _c
108}
109
110func (_c *KeyInspector_Inspect_Call) Return(id string, canonical string, err error) *KeyInspector_Inspect_Call {
111 _c.Call.Return(id, canonical, err)
112 return _c
113}
114
115func (_c *KeyInspector_Inspect_Call) RunAndReturn(run func(format domain.SignatureFormat, publicKey string) (string, string, error)) *KeyInspector_Inspect_Call {
116 _c.Call.Return(run)
117 return _c
118}