Skip to content

Commit 173e662

Browse files
authored
refactor: replace NotificationRepository mock by gomock generated one (#344)
Signed-off-by: zyfy29 <[email protected]>
1 parent e459f02 commit 173e662

File tree

4 files changed

+197
-116
lines changed

4 files changed

+197
-116
lines changed

internal/repository/notification.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
)
88

99
// NotificationRepository is a repository for managing notifications.
10+
//
11+
//go:generate mockgen -source=notification.go -destination=../testutil/mock/notification_repo_gen.go -package=mock -mock_names "NotificationRepository=NotificationRepository"
1012
type NotificationRepository interface {
1113
Create(ctx context.Context, notification *model.Notification) error
1214
Get(ctx context.Context, id, recipient model.ID) (*model.Notification, error)

0 commit comments

Comments
 (0)