-
Notifications
You must be signed in to change notification settings - Fork 179
/
transaction_write_behind_logger.go
39 lines (28 loc) · 1.39 KB
/
transaction_write_behind_logger.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
// Code generated by mockery v2.21.4. DO NOT EDIT.
package mock
import (
computer "github.com/onflow/flow-go/engine/execution/computation/computer"
fvm "github.com/onflow/flow-go/fvm"
mock "github.com/stretchr/testify/mock"
snapshot "github.com/onflow/flow-go/fvm/storage/snapshot"
time "time"
)
// TransactionWriteBehindLogger is an autogenerated mock type for the TransactionWriteBehindLogger type
type TransactionWriteBehindLogger struct {
mock.Mock
}
// AddTransactionResult provides a mock function with given fields: txn, _a1, output, timeSpent, numTxnConflictRetries
func (_m *TransactionWriteBehindLogger) AddTransactionResult(txn computer.TransactionRequest, _a1 *snapshot.ExecutionSnapshot, output fvm.ProcedureOutput, timeSpent time.Duration, numTxnConflictRetries int) {
_m.Called(txn, _a1, output, timeSpent, numTxnConflictRetries)
}
type mockConstructorTestingTNewTransactionWriteBehindLogger interface {
mock.TestingT
Cleanup(func())
}
// NewTransactionWriteBehindLogger creates a new instance of TransactionWriteBehindLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewTransactionWriteBehindLogger(t mockConstructorTestingTNewTransactionWriteBehindLogger) *TransactionWriteBehindLogger {
mock := &TransactionWriteBehindLogger{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}