(t *testing.T)
| 456 | } |
| 457 | |
| 458 | func TestDefaultLoggingFormat(t *testing.T) { |
| 459 | _, opts, _, err := invokeCommand([]string{}) |
| 460 | if err != nil { |
| 461 | t.Fatalf("unexpected error invoking command: %s", err) |
| 462 | } |
| 463 | got := opts.Cfg.LoggingFormat.String() |
| 464 | want := "standard" |
| 465 | if got != want { |
| 466 | t.Fatalf("unexpected default logging format flag: got %v, want %v", got, want) |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | func TestDefaultLogLevel(t *testing.T) { |
| 471 | _, opts, _, err := invokeCommand([]string{}) |
nothing calls this directly
no test coverage detected