MCPcopy Create free account
hub / github.com/CyCoreSystems/ari / Data

Method Data

client/arimocks/Modules.go:40–65  ·  view source on GitHub ↗

Data provides a mock function for the type Modules

(key *ari.Key)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 3

Modulesclient/arimocks/Modules.go
Modules_Expecterclient/arimocks/Modules.go
Modulesclient/native/modules.go

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected