Data provides a mock function for the type Modules
(key *ari.Key)
| 38 | |
| 39 | // Data provides a mock function for the type Modules |
| 40 | func (_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' |
| 68 | type Modules_Data_Call struct { |
nothing calls this directly
no test coverage detected