github.com/yous1230/fabric@v2.0.0-beta.0.20191224111736-74345bee6ac2+incompatible/core/handlers/validation/builtin/v20/mocks/collection_resources.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  
     7  import validation "github.com/hyperledger/fabric/core/handlers/validation/api/state"
     8  
     9  // CollectionResources is an autogenerated mock type for the CollectionResources type
    10  type CollectionResources struct {
    11  	mock.Mock
    12  }
    13  
    14  // CollectionValidationInfo provides a mock function with given fields: chaincodeName, collectionName, state
    15  func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error) {
    16  	ret := _m.Called(chaincodeName, collectionName, state)
    17  
    18  	var r0 []byte
    19  	if rf, ok := ret.Get(0).(func(string, string, validation.State) []byte); ok {
    20  		r0 = rf(chaincodeName, collectionName, state)
    21  	} else {
    22  		if ret.Get(0) != nil {
    23  			r0 = ret.Get(0).([]byte)
    24  		}
    25  	}
    26  
    27  	var r1 error
    28  	if rf, ok := ret.Get(1).(func(string, string, validation.State) error); ok {
    29  		r1 = rf(chaincodeName, collectionName, state)
    30  	} else {
    31  		r1 = ret.Error(1)
    32  	}
    33  
    34  	var r2 error
    35  	if rf, ok := ret.Get(2).(func(string, string, validation.State) error); ok {
    36  		r2 = rf(chaincodeName, collectionName, state)
    37  	} else {
    38  		r2 = ret.Error(2)
    39  	}
    40  
    41  	return r0, r1, r2
    42  }