Skip to content

Commit

Permalink
Update level strings test name and test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Feb 28, 2017
1 parent 8692aa9 commit a51d092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zapcore/level_strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"github.com/stretchr/testify/assert"
)

func TestAllLevelsCoveredByAColor(t *testing.T) {
func TestAllLevelsCoveredByLevelString(t *testing.T) {
assert.Equal(t, len(levelToColor), len(AllLevels), "Length of levelToColor not equal to to the length of AllLevels")
for _, level := range AllLevels {
assert.NotEmpty(t, levelToColor[level], "Level %v not covered by a color in levelToColor", level)
assert.NotEmpty(t, levelToLowercaseString[level], "Level %v not covered in levelToLowercaseString", level)
assert.NotEmpty(t, levelToCapitalString[level], "Level %v not covered in levelToCapitalString", level)
assert.NotEmpty(t, levelToLowercaseColorString[level], "Level %v not covered by a color in levelToLowercaseColorString", level)
assert.NotEmpty(t, levelToCapitalColorString[level], "Level %v not covered by a color in levelToCapitalColorString", level)
assert.NotEmpty(t, levelToLowercaseColorString[level], "Level %v not covered levelToLowercaseColorString", level)
assert.NotEmpty(t, levelToCapitalColorString[level], "Level %v not covered in levelToCapitalColorString", level)
}
}

0 comments on commit a51d092

Please sign in to comment.