github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/mocks/eventsmocks/plugin.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package eventsmocks
     4  
     5  import (
     6  	context "context"
     7  
     8  	config "github.com/kaleido-io/firefly/internal/config"
     9  
    10  	events "github.com/kaleido-io/firefly/pkg/events"
    11  
    12  	fftypes "github.com/kaleido-io/firefly/pkg/fftypes"
    13  
    14  	mock "github.com/stretchr/testify/mock"
    15  )
    16  
    17  // Plugin is an autogenerated mock type for the Plugin type
    18  type Plugin struct {
    19  	mock.Mock
    20  }
    21  
    22  // Capabilities provides a mock function with given fields:
    23  func (_m *Plugin) Capabilities() *events.Capabilities {
    24  	ret := _m.Called()
    25  
    26  	var r0 *events.Capabilities
    27  	if rf, ok := ret.Get(0).(func() *events.Capabilities); ok {
    28  		r0 = rf()
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(*events.Capabilities)
    32  		}
    33  	}
    34  
    35  	return r0
    36  }
    37  
    38  // DeliveryRequest provides a mock function with given fields: connID, event
    39  func (_m *Plugin) DeliveryRequest(connID string, event *fftypes.EventDelivery) error {
    40  	ret := _m.Called(connID, event)
    41  
    42  	var r0 error
    43  	if rf, ok := ret.Get(0).(func(string, *fftypes.EventDelivery) error); ok {
    44  		r0 = rf(connID, event)
    45  	} else {
    46  		r0 = ret.Error(0)
    47  	}
    48  
    49  	return r0
    50  }
    51  
    52  // Init provides a mock function with given fields: ctx, prefix, callbacks
    53  func (_m *Plugin) Init(ctx context.Context, prefix config.Prefix, callbacks events.Callbacks) error {
    54  	ret := _m.Called(ctx, prefix, callbacks)
    55  
    56  	var r0 error
    57  	if rf, ok := ret.Get(0).(func(context.Context, config.Prefix, events.Callbacks) error); ok {
    58  		r0 = rf(ctx, prefix, callbacks)
    59  	} else {
    60  		r0 = ret.Error(0)
    61  	}
    62  
    63  	return r0
    64  }
    65  
    66  // InitPrefix provides a mock function with given fields: prefix
    67  func (_m *Plugin) InitPrefix(prefix config.Prefix) {
    68  	_m.Called(prefix)
    69  }
    70  
    71  // Name provides a mock function with given fields:
    72  func (_m *Plugin) Name() string {
    73  	ret := _m.Called()
    74  
    75  	var r0 string
    76  	if rf, ok := ret.Get(0).(func() string); ok {
    77  		r0 = rf()
    78  	} else {
    79  		r0 = ret.Get(0).(string)
    80  	}
    81  
    82  	return r0
    83  }