test coerage

This commit is contained in:
Liang Ding 2014-12-21 11:32:22 +08:00
parent 98f6e2fbe7
commit 20219fbac8
1 changed files with 2 additions and 8 deletions

View File

@ -128,19 +128,13 @@ func TestGetLevel(t *testing.T) {
}
func TestLoggerSetLevel(t *testing.T) {
logger.SetLevel("trace")
if logger.level != Trace {
t.FailNow()
return
}
logger.SetLevel("info")
if logger.level != Info {
t.FailNow()
return
}
}
func TestIsTraceEnabled(t *testing.T) {