Newer
Older
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import (
Malte Bauch
committed
controllerevent "code.fbi.h-da.de/danet/gosdn/controller/event"
Malte Bauch
committed
mock "github.com/stretchr/testify/mock"
)
// Service is an autogenerated mock type for the Service type
type Service struct {
mock.Mock
}
Malte Bauch
committed
// CloseConnection provides a mock function with given fields:
func (_m *Service) CloseConnection() {
_m.Called()
Malte Bauch
committed
// PublishEvent provides a mock function with given fields: topic, _a1
func (_m *Service) PublishEvent(topic string, _a1 controllerevent.Event) error {
ret := _m.Called(topic, _a1)
var r0 error
Malte Bauch
committed
if rf, ok := ret.Get(0).(func(string, controllerevent.Event) error); ok {
r0 = rf(topic, _a1)
} else {
r0 = ret.Error(0)
}
return r0
}
type mockConstructorTestingTNewService interface {
mock.TestingT
Cleanup(func())
}
// NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewService(t mockConstructorTestingTNewService) *Service {
mock := &Service{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}