Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1214 from q384566678/add-test
Browse files Browse the repository at this point in the history
pkg/constants: improve GetMsgByCode test
  • Loading branch information
allencloud authored Feb 13, 2020
2 parents 1481da3 + 78504d7 commit bc736ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/constants/dfget_super_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ func init() {
func (suite *DfgetSuperCodeUtilSuite) TestGetMsgByCode(c *check.C) {
msg := GetMsgByCode(200)
c.Check(msg, check.Equals, "success")

msg = GetMsgByCode(612)
c.Check(msg, check.Equals, "")
}

0 comments on commit bc736ed

Please sign in to comment.