57 lines
2.0 KiB
Go
57 lines
2.0 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: galaxy/gamemaster/internal/ports (interfaces: NotificationIntentPublisher)
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination=../adapters/mocks/mock_notificationpublisher.go -package=mocks galaxy/gamemaster/internal/ports NotificationIntentPublisher
|
|
//
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
notificationintent "galaxy/notificationintent"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockNotificationIntentPublisher is a mock of NotificationIntentPublisher interface.
|
|
type MockNotificationIntentPublisher struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockNotificationIntentPublisherMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockNotificationIntentPublisherMockRecorder is the mock recorder for MockNotificationIntentPublisher.
|
|
type MockNotificationIntentPublisherMockRecorder struct {
|
|
mock *MockNotificationIntentPublisher
|
|
}
|
|
|
|
// NewMockNotificationIntentPublisher creates a new mock instance.
|
|
func NewMockNotificationIntentPublisher(ctrl *gomock.Controller) *MockNotificationIntentPublisher {
|
|
mock := &MockNotificationIntentPublisher{ctrl: ctrl}
|
|
mock.recorder = &MockNotificationIntentPublisherMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockNotificationIntentPublisher) EXPECT() *MockNotificationIntentPublisherMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Publish mocks base method.
|
|
func (m *MockNotificationIntentPublisher) Publish(ctx context.Context, intent notificationintent.Intent) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Publish", ctx, intent)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Publish indicates an expected call of Publish.
|
|
func (mr *MockNotificationIntentPublisherMockRecorder) Publish(ctx, intent any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Publish", reflect.TypeOf((*MockNotificationIntentPublisher)(nil).Publish), ctx, intent)
|
|
}
|