MCPcopy
hub / github.com/vektra/mockery / GetString

Method GetString

internal/cmd/mocks_testify_cmd_test.go:41–64  ·  view source on GitHub ↗

GetString provides a mock function for the type mockargGetter

(name string)

Source from the content-addressed store, hash-verified

39
40// GetString provides a mock function for the type mockargGetter
41func (_mock *mockargGetter) GetString(name string) (string, error) {
42 ret := _mock.Called(name)
43
44 if len(ret) == 0 {
45 panic("no return value specified for GetString")
46 }
47
48 var r0 string
49 var r1 error
50 if returnFunc, ok := ret.Get(0).(func(string) (string, error)); ok {
51 return returnFunc(name)
52 }
53 if returnFunc, ok := ret.Get(0).(func(string) string); ok {
54 r0 = returnFunc(name)
55 } else {
56 r0 = ret.Get(0).(string)
57 }
58 if returnFunc, ok := ret.Get(1).(func(string) error); ok {
59 r1 = returnFunc(name)
60 } else {
61 r1 = ret.Error(1)
62 }
63 return r0, r1
64}
65
66// mockargGetter_GetString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetString'
67type mockargGetter_GetString_Call struct {

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected