(t *testing.T)
| 468 | } |
| 469 | |
| 470 | func TestDefaultLogLevel(t *testing.T) { |
| 471 | _, opts, _, err := invokeCommand([]string{}) |
| 472 | if err != nil { |
| 473 | t.Fatalf("unexpected error invoking command: %s", err) |
| 474 | } |
| 475 | got := opts.Cfg.LogLevel.String() |
| 476 | want := "info" |
| 477 | if got != want { |
| 478 | t.Fatalf("unexpected default log level flag: got %v, want %v", got, want) |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | // normalizeFilepaths is a helper function to allow same filepath formats for Mac and Windows. |
| 483 | // this prevents needing multiple "want" cases for TestResolveWatcherInputs |
nothing calls this directly
no test coverage detected