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.
bathyscaphe/internal/logging/log_test.go

19 lines
252 B
Go

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()
}
}