github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/environment/mock/event_emitter.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	cadence "github.com/onflow/cadence"
     7  
     8  	flow "github.com/onflow/flow-go/model/flow"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  )
    12  
    13  // EventEmitter is an autogenerated mock type for the EventEmitter type
    14  type EventEmitter struct {
    15  	mock.Mock
    16  }
    17  
    18  // ConvertedServiceEvents provides a mock function with given fields:
    19  func (_m *EventEmitter) ConvertedServiceEvents() flow.ServiceEventList {
    20  	ret := _m.Called()
    21  
    22  	var r0 flow.ServiceEventList
    23  	if rf, ok := ret.Get(0).(func() flow.ServiceEventList); ok {
    24  		r0 = rf()
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).(flow.ServiceEventList)
    28  		}
    29  	}
    30  
    31  	return r0
    32  }
    33  
    34  // EmitEvent provides a mock function with given fields: event
    35  func (_m *EventEmitter) EmitEvent(event cadence.Event) error {
    36  	ret := _m.Called(event)
    37  
    38  	var r0 error
    39  	if rf, ok := ret.Get(0).(func(cadence.Event) error); ok {
    40  		r0 = rf(event)
    41  	} else {
    42  		r0 = ret.Error(0)
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  // Events provides a mock function with given fields:
    49  func (_m *EventEmitter) Events() flow.EventsList {
    50  	ret := _m.Called()
    51  
    52  	var r0 flow.EventsList
    53  	if rf, ok := ret.Get(0).(func() flow.EventsList); ok {
    54  		r0 = rf()
    55  	} else {
    56  		if ret.Get(0) != nil {
    57  			r0 = ret.Get(0).(flow.EventsList)
    58  		}
    59  	}
    60  
    61  	return r0
    62  }
    63  
    64  // Reset provides a mock function with given fields:
    65  func (_m *EventEmitter) Reset() {
    66  	_m.Called()
    67  }
    68  
    69  // ServiceEvents provides a mock function with given fields:
    70  func (_m *EventEmitter) ServiceEvents() flow.EventsList {
    71  	ret := _m.Called()
    72  
    73  	var r0 flow.EventsList
    74  	if rf, ok := ret.Get(0).(func() flow.EventsList); ok {
    75  		r0 = rf()
    76  	} else {
    77  		if ret.Get(0) != nil {
    78  			r0 = ret.Get(0).(flow.EventsList)
    79  		}
    80  	}
    81  
    82  	return r0
    83  }
    84  
    85  type mockConstructorTestingTNewEventEmitter interface {
    86  	mock.TestingT
    87  	Cleanup(func())
    88  }
    89  
    90  // NewEventEmitter creates a new instance of EventEmitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    91  func NewEventEmitter(t mockConstructorTestingTNewEventEmitter) *EventEmitter {
    92  	mock := &EventEmitter{}
    93  	mock.Mock.Test(t)
    94  
    95  	t.Cleanup(func() { mock.AssertExpectations(t) })
    96  
    97  	return mock
    98  }