/
enumerator.go
33 lines (27 loc) · 780 Bytes
/
enumerator.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import chaincode "github.com/hyperledger/fabric/common/chaincode"
import mock "github.com/stretchr/testify/mock"
// Enumerator is an autogenerated mock type for the Enumerator type
type Enumerator struct {
mock.Mock
}
// Enumerate provides a mock function with given fields:
func (_m *Enumerator) Enumerate() ([]chaincode.InstalledChaincode, error) {
ret := _m.Called()
var r0 []chaincode.InstalledChaincode
if rf, ok := ret.Get(0).(func() []chaincode.InstalledChaincode); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]chaincode.InstalledChaincode)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}