github.com/koko1123/flow-go-1@v0.29.6/fvm/environment/mock/derived_transaction_data.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	common "github.com/onflow/cadence/runtime/common"
     7  	derived "github.com/koko1123/flow-go-1/fvm/derived"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	state "github.com/koko1123/flow-go-1/fvm/state"
    12  )
    13  
    14  // DerivedTransactionData is an autogenerated mock type for the DerivedTransactionData type
    15  type DerivedTransactionData struct {
    16  	mock.Mock
    17  }
    18  
    19  // GetProgram provides a mock function with given fields: loc
    20  func (_m *DerivedTransactionData) GetProgram(loc common.AddressLocation) (*derived.Program, *state.State, bool) {
    21  	ret := _m.Called(loc)
    22  
    23  	var r0 *derived.Program
    24  	if rf, ok := ret.Get(0).(func(common.AddressLocation) *derived.Program); ok {
    25  		r0 = rf(loc)
    26  	} else {
    27  		if ret.Get(0) != nil {
    28  			r0 = ret.Get(0).(*derived.Program)
    29  		}
    30  	}
    31  
    32  	var r1 *state.State
    33  	if rf, ok := ret.Get(1).(func(common.AddressLocation) *state.State); ok {
    34  		r1 = rf(loc)
    35  	} else {
    36  		if ret.Get(1) != nil {
    37  			r1 = ret.Get(1).(*state.State)
    38  		}
    39  	}
    40  
    41  	var r2 bool
    42  	if rf, ok := ret.Get(2).(func(common.AddressLocation) bool); ok {
    43  		r2 = rf(loc)
    44  	} else {
    45  		r2 = ret.Get(2).(bool)
    46  	}
    47  
    48  	return r0, r1, r2
    49  }
    50  
    51  // SetProgram provides a mock function with given fields: loc, prog, _a2
    52  func (_m *DerivedTransactionData) SetProgram(loc common.AddressLocation, prog *derived.Program, _a2 *state.State) {
    53  	_m.Called(loc, prog, _a2)
    54  }
    55  
    56  type mockConstructorTestingTNewDerivedTransactionData interface {
    57  	mock.TestingT
    58  	Cleanup(func())
    59  }
    60  
    61  // NewDerivedTransactionData creates a new instance of DerivedTransactionData. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    62  func NewDerivedTransactionData(t mockConstructorTestingTNewDerivedTransactionData) *DerivedTransactionData {
    63  	mock := &DerivedTransactionData{}
    64  	mock.Mock.Test(t)
    65  
    66  	t.Cleanup(func() { mock.AssertExpectations(t) })
    67  
    68  	return mock
    69  }