-
Notifications
You must be signed in to change notification settings - Fork 1
Test/handler/score #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Test/handler/score #182
Conversation
| "github.com/su-its/typing/typing-server/internal/domain/service" | ||
| ) | ||
|
|
||
| // モック作成のためインターフェースを実装 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェースの作成は正確にはモック作成のためではなく、インタフェースという抽象の具体の一つにモックがあるという認識できると 良いです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェースなことは見ればわかりそうなのでコメントなくても良さそう
| // モック作成のためインターフェースを実装 | ||
| type IScoreUseCase interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // モック作成のためインターフェースを実装 | |
| type IScoreUseCase interface { | |
| type IScoreUseCase interface { |
| const ( | ||
| ErrMsgInvalidSortbyParam = "Invalid sort_by parameter" | ||
| ErrMsgInvalidStartParam = "Invalid start parameter" | ||
| ErrMsgInvalidLimitParam = "Invalid limit parameter" | ||
| ErrMsgFetchRanking = "Failed to fetch ranking" | ||
| ErrMsgScoreEncodeResponse = "Failed to encode response" | ||
|
|
||
| ErrMsgInvalidReqBody = "Invalid request body" | ||
| ErrMsgInvalidUserIdFormat = "Invalid user_id format" | ||
| ErrMsgRegisterScore = "Failed to register score" | ||
| MsgRegisteredSuccessfully = "Score registered successfully" | ||
| ErrMsgWriteResponse = "Failed to write response" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
日本語で対応したいかもですね。
これはUserHandlerが日本語に対応しているからなのですが。
| "github.com/su-its/typing/typing-server/internal/domain/service" | ||
| ) | ||
|
|
||
| // モック作成のためインターフェースを実装 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェースなことは見ればわかりそうなのでコメントなくても良さそう
5533464 to
c3c9b37
Compare
チケットへのリンク
やったこと
やらないこと
できるようになること(ユーザ目線)
できなくなること(ユーザ目線)
動作確認
その他