github.com/Hnampk/fabric@v2.1.1+incompatible/gossip/privdata/mocks/collection_access_policy.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 import privdata "github.com/hyperledger/fabric/core/common/privdata" 7 8 // CollectionAccessPolicy is an autogenerated mock type for the CollectionAccessPolicy type 9 type CollectionAccessPolicy struct { 10 mock.Mock 11 } 12 13 // AccessFilter provides a mock function with given fields: 14 func (_m *CollectionAccessPolicy) AccessFilter() privdata.Filter { 15 ret := _m.Called() 16 17 var r0 privdata.Filter 18 if rf, ok := ret.Get(0).(func() privdata.Filter); ok { 19 r0 = rf() 20 } else { 21 if ret.Get(0) != nil { 22 r0 = ret.Get(0).(privdata.Filter) 23 } 24 } 25 26 return r0 27 } 28 29 // IsMemberOnlyRead provides a mock function with given fields: 30 func (_m *CollectionAccessPolicy) IsMemberOnlyRead() bool { 31 ret := _m.Called() 32 33 var r0 bool 34 if rf, ok := ret.Get(0).(func() bool); ok { 35 r0 = rf() 36 } else { 37 r0 = ret.Get(0).(bool) 38 } 39 40 return r0 41 } 42 43 // IsMemberOnlyWrite provides a mock function with given fields: 44 func (_m *CollectionAccessPolicy) IsMemberOnlyWrite() bool { 45 ret := _m.Called() 46 47 var r0 bool 48 if rf, ok := ret.Get(0).(func() bool); ok { 49 r0 = rf() 50 } else { 51 r0 = ret.Get(0).(bool) 52 } 53 54 return r0 55 } 56 57 // MaximumPeerCount provides a mock function with given fields: 58 func (_m *CollectionAccessPolicy) MaximumPeerCount() int { 59 ret := _m.Called() 60 61 var r0 int 62 if rf, ok := ret.Get(0).(func() int); ok { 63 r0 = rf() 64 } else { 65 r0 = ret.Get(0).(int) 66 } 67 68 return r0 69 } 70 71 // MemberOrgs provides a mock function with given fields: 72 func (_m *CollectionAccessPolicy) MemberOrgs() map[string]struct{} { 73 ret := _m.Called() 74 75 var r0 map[string]struct{} 76 if rf, ok := ret.Get(0).(func() map[string]struct{}); ok { 77 r0 = rf() 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(map[string]struct{}) 81 } 82 } 83 84 return r0 85 } 86 87 // RequiredPeerCount provides a mock function with given fields: 88 func (_m *CollectionAccessPolicy) RequiredPeerCount() int { 89 ret := _m.Called() 90 91 var r0 int 92 if rf, ok := ret.Get(0).(func() int); ok { 93 r0 = rf() 94 } else { 95 r0 = ret.Get(0).(int) 96 } 97 98 return r0 99 }