test coerage
This commit is contained in:
parent
98f6e2fbe7
commit
20219fbac8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue