You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package logging
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestGetLogFlag(t *testing.T) {
|
|
flag := GetLogFlag()
|
|
if flag.Name != "log-level" {
|
|
t.Fail()
|
|
}
|
|
if flag.Usage != "Set the application log level" {
|
|
t.Fail()
|
|
}
|
|
if flag.Value != "info" {
|
|
t.Fail()
|
|
}
|
|
}
|