github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/execution/computation/computer/mock/transaction_write_behind_logger.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	computer "github.com/onflow/flow-go/engine/execution/computation/computer"
     7  	fvm "github.com/onflow/flow-go/fvm"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	snapshot "github.com/onflow/flow-go/fvm/storage/snapshot"
    12  
    13  	time "time"
    14  )
    15  
    16  // TransactionWriteBehindLogger is an autogenerated mock type for the TransactionWriteBehindLogger type
    17  type TransactionWriteBehindLogger struct {
    18  	mock.Mock
    19  }
    20  
    21  // AddTransactionResult provides a mock function with given fields: txn, _a1, output, timeSpent, numTxnConflictRetries
    22  func (_m *TransactionWriteBehindLogger) AddTransactionResult(txn computer.TransactionRequest, _a1 *snapshot.ExecutionSnapshot, output fvm.ProcedureOutput, timeSpent time.Duration, numTxnConflictRetries int) {
    23  	_m.Called(txn, _a1, output, timeSpent, numTxnConflictRetries)
    24  }
    25  
    26  type mockConstructorTestingTNewTransactionWriteBehindLogger interface {
    27  	mock.TestingT
    28  	Cleanup(func())
    29  }
    30  
    31  // 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.
    32  func NewTransactionWriteBehindLogger(t mockConstructorTestingTNewTransactionWriteBehindLogger) *TransactionWriteBehindLogger {
    33  	mock := &TransactionWriteBehindLogger{}
    34  	mock.Mock.Test(t)
    35  
    36  	t.Cleanup(func() { mock.AssertExpectations(t) })
    37  
    38  	return mock
    39  }