github.com/ewagmig/fabric@v2.1.1+incompatible/core/common/validation/statebased/mocks/key_level_validation_parameter_manager.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  // KeyLevelValidationParameterManager is an autogenerated mock type for the KeyLevelValidationParameterManager type
     8  type KeyLevelValidationParameterManager struct {
     9  	mock.Mock
    10  }
    11  
    12  // ExtractValidationParameterDependency provides a mock function with given fields: blockNum, txNum, rwset
    13  func (_m *KeyLevelValidationParameterManager) ExtractValidationParameterDependency(blockNum uint64, txNum uint64, rwset []byte) {
    14  	_m.Called(blockNum, txNum, rwset)
    15  }
    16  
    17  // GetValidationParameterForKey provides a mock function with given fields: cc, coll, key, blockNum, txNum
    18  func (_m *KeyLevelValidationParameterManager) GetValidationParameterForKey(cc string, coll string, key string, blockNum uint64, txNum uint64) ([]byte, error) {
    19  	ret := _m.Called(cc, coll, key, blockNum, txNum)
    20  
    21  	var r0 []byte
    22  	if rf, ok := ret.Get(0).(func(string, string, string, uint64, uint64) []byte); ok {
    23  		r0 = rf(cc, coll, key, blockNum, txNum)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).([]byte)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(string, string, string, uint64, uint64) error); ok {
    32  		r1 = rf(cc, coll, key, blockNum, txNum)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // SetTxValidationResult provides a mock function with given fields: cc, blockNum, txNum, err
    41  func (_m *KeyLevelValidationParameterManager) SetTxValidationResult(cc string, blockNum uint64, txNum uint64, err error) {
    42  	_m.Called(cc, blockNum, txNum, err)
    43  }