Documentation
¶
Index ¶
- func GetFreePort() (int, error)
- func WaitForServer(port int, timeout time.Duration) error
- type MockNotificationSender
- func (m *MockNotificationSender) NotifyDefault(message string) bool
- func (m *MockNotificationSender) NotifyDefaultWithError(message string) bool
- func (m *MockNotificationSender) NotifyWithTitle(notifierID string, title string, message string, errorOccurred bool) bool
- func (m *MockNotificationSender) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockNotificationSender ¶
type MockNotificationSender struct {
NotifyCalled bool
LastNotifierID string
LastTitle string
LastMessage string
LastErrorOccurred bool
ShouldFail bool
NotifyDefaultCalled bool
// contains filtered or unexported fields
}
MockNotificationSender NotificationService의 테스트용 Mock 구현체입니다. service/api 및 하위 패키지(v1/handler 등) 테스트에서 공통으로 사용됩니다.
func (*MockNotificationSender) NotifyDefault ¶
func (m *MockNotificationSender) NotifyDefault(message string) bool
func (*MockNotificationSender) NotifyDefaultWithError ¶
func (m *MockNotificationSender) NotifyDefaultWithError(message string) bool
func (*MockNotificationSender) NotifyWithTitle ¶
Click to show internal directories.
Click to hide internal directories.