This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git

commit 4334d7eb5f45e4b0d919422961561656802a9ff1
Author: LinkinStars <[email protected]>
AuthorDate: Wed Jul 8 10:41:28 2026 +0800

    fix(tests): add mock methods for cache OAuth state in new question 
notification tests
---
 .../notification/new_question_notification_test.go        | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/internal/service/notification/new_question_notification_test.go 
b/internal/service/notification/new_question_notification_test.go
index 754481f6..3bb6a3dd 100644
--- a/internal/service/notification/new_question_notification_test.go
+++ b/internal/service/notification/new_question_notification_test.go
@@ -798,3 +798,18 @@ func (newQuestionNotificationTestUserExternalLoginRepo) 
GetCacheUserExternalLogi
        context.Context, string) (*schema.ExternalLoginUserInfoCache, error) {
        return nil, nil
 }
+
+func (newQuestionNotificationTestUserExternalLoginRepo) SetCacheOAuthState(
+       context.Context, string, *schema.ExternalLoginOAuthState, 
time.Duration) error {
+       return nil
+}
+
+func (newQuestionNotificationTestUserExternalLoginRepo) GetCacheOAuthState(
+       context.Context, string) (*schema.ExternalLoginOAuthState, error) {
+       return nil, nil
+}
+
+func (newQuestionNotificationTestUserExternalLoginRepo) DeleteCacheOAuthState(
+       context.Context, string) error {
+       return nil
+}

Reply via email to