Skip to content

Commit

Permalink
constants:补全测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
keepchen committed Feb 12, 2025
1 parent def9f3d commit 46df549
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions constants/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ func TestString(t *testing.T) {
}

func TestInt(t *testing.T) {
for lang, msgMap := range initErrorCodeMsgMap {
RegisterCodeTable(lang, msgMap)
}
assert.Equal(t, 0, ErrNone.Int())
}

0 comments on commit 46df549

Please sign in to comment.