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) {
|
func TestLoggerSetLevel(t *testing.T) {
|
||||||
|
logger.SetLevel("trace")
|
||||||
|
|
||||||
if logger.level != Trace {
|
if logger.level != Trace {
|
||||||
t.FailNow()
|
t.FailNow()
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.SetLevel("info")
|
|
||||||
|
|
||||||
if logger.level != Info {
|
|
||||||
t.FailNow()
|
|
||||||
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIsTraceEnabled(t *testing.T) {
|
func TestIsTraceEnabled(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue