forked from hyperledger/fabric
/
key_level_validation_parameter_manager.go
43 lines (34 loc) · 1.51 KB
/
key_level_validation_parameter_manager.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// KeyLevelValidationParameterManager is an autogenerated mock type for the KeyLevelValidationParameterManager type
type KeyLevelValidationParameterManager struct {
mock.Mock
}
// ExtractValidationParameterDependency provides a mock function with given fields: blockNum, txNum, rwset
func (_m *KeyLevelValidationParameterManager) ExtractValidationParameterDependency(blockNum uint64, txNum uint64, rwset []byte) {
_m.Called(blockNum, txNum, rwset)
}
// GetValidationParameterForKey provides a mock function with given fields: cc, coll, key, blockNum, txNum
func (_m *KeyLevelValidationParameterManager) GetValidationParameterForKey(cc string, coll string, key string, blockNum uint64, txNum uint64) ([]byte, error) {
ret := _m.Called(cc, coll, key, blockNum, txNum)
var r0 []byte
if rf, ok := ret.Get(0).(func(string, string, string, uint64, uint64) []byte); ok {
r0 = rf(cc, coll, key, blockNum, txNum)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]byte)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string, string, uint64, uint64) error); ok {
r1 = rf(cc, coll, key, blockNum, txNum)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// SetTxValidationResult provides a mock function with given fields: cc, blockNum, txNum, err
func (_m *KeyLevelValidationParameterManager) SetTxValidationResult(cc string, blockNum uint64, txNum uint64, err error) {
_m.Called(cc, blockNum, txNum, err)
}