Skip to content
Snippets Groups Projects
Service.go 1.13 KiB
Newer Older
  • Learn to ignore specific revisions
  • // Code generated by mockery v2.14.0. DO NOT EDIT.
    
    package mocks
    
    import (
    
    	controllerevent "code.fbi.h-da.de/danet/gosdn/controller/event"
    
    )
    
    // Service is an autogenerated mock type for the Service type
    type Service struct {
    	mock.Mock
    }
    
    
    // CloseConnection provides a mock function with given fields:
    func (_m *Service) CloseConnection() {
    	_m.Called()
    
    // 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)
    
    	if rf, ok := ret.Get(0).(func(string, controllerevent.Event) error); ok {
    		r0 = rf(topic, _a1)
    
    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
    }