github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/common/validation/statebased/mocks/collection_resources.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	validation "github.com/hechain20/hechain/core/handlers/validation/api/state"
     9  )
    10  
    11  // CollectionResources is an autogenerated mock type for the CollectionResources type
    12  type CollectionResources struct {
    13  	mock.Mock
    14  }
    15  
    16  // CollectionValidationInfo provides a mock function with given fields: chaincodeName, collectionName, state
    17  func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error) {
    18  	ret := _m.Called(chaincodeName, collectionName, state)
    19  
    20  	var r0 []byte
    21  	if rf, ok := ret.Get(0).(func(string, string, validation.State) []byte); ok {
    22  		r0 = rf(chaincodeName, collectionName, state)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).([]byte)
    26  		}
    27  	}
    28  
    29  	var r1 error
    30  	if rf, ok := ret.Get(1).(func(string, string, validation.State) error); ok {
    31  		r1 = rf(chaincodeName, collectionName, state)
    32  	} else {
    33  		r1 = ret.Error(1)
    34  	}
    35  
    36  	var r2 error
    37  	if rf, ok := ret.Get(2).(func(string, string, validation.State) error); ok {
    38  		r2 = rf(chaincodeName, collectionName, state)
    39  	} else {
    40  		r2 = ret.Error(2)
    41  	}
    42  
    43  	return r0, r1, r2
    44  }