github.com/koko1123/flow-go-1@v0.29.6/storage/mock/transaction.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // Transaction is an autogenerated mock type for the Transaction type
     8  type Transaction struct {
     9  	mock.Mock
    10  }
    11  
    12  // Set provides a mock function with given fields: key, val
    13  func (_m *Transaction) Set(key []byte, val []byte) error {
    14  	ret := _m.Called(key, val)
    15  
    16  	var r0 error
    17  	if rf, ok := ret.Get(0).(func([]byte, []byte) error); ok {
    18  		r0 = rf(key, val)
    19  	} else {
    20  		r0 = ret.Error(0)
    21  	}
    22  
    23  	return r0
    24  }
    25  
    26  type mockConstructorTestingTNewTransaction interface {
    27  	mock.TestingT
    28  	Cleanup(func())
    29  }
    30  
    31  // NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    32  func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction {
    33  	mock := &Transaction{}
    34  	mock.Mock.Test(t)
    35  
    36  	t.Cleanup(func() { mock.AssertExpectations(t) })
    37  
    38  	return mock
    39  }