github.com/ewagmig/fabric@v2.1.1+incompatible/core/policy/mocks/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 msp "github.com/hyperledger/fabric/msp"
     7  
     8  import protoutil "github.com/hyperledger/fabric/protoutil"
     9  
    10  // Policy is an autogenerated mock type for the Policy type
    11  type Policy struct {
    12  	mock.Mock
    13  }
    14  
    15  // EvaluateIdentities provides a mock function with given fields: identities
    16  func (_m *Policy) EvaluateIdentities(identities []msp.Identity) error {
    17  	ret := _m.Called(identities)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func([]msp.Identity) error); ok {
    21  		r0 = rf(identities)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // EvaluateSignedData provides a mock function with given fields: signatureSet
    30  func (_m *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error {
    31  	ret := _m.Called(signatureSet)
    32  
    33  	var r0 error
    34  	if rf, ok := ret.Get(0).(func([]*protoutil.SignedData) error); ok {
    35  		r0 = rf(signatureSet)
    36  	} else {
    37  		r0 = ret.Error(0)
    38  	}
    39  
    40  	return r0
    41  }