(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestConfig_GetFormatterJSON(t *testing.T) { |
| 68 | conf := config.NewDefault() |
| 69 | conf.Formatter = "json" |
| 70 | f, err := config.GetFormatter(conf) |
| 71 | if err != nil { |
| 72 | t.Fatalf("unexpected error: %v", err) |
| 73 | } |
| 74 | if f.Name() != "json" { |
| 75 | t.Errorf("expected formatter name 'json', got %q", f.Name()) |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | func TestConfig_GetFormatterUnknown(t *testing.T) { |
| 80 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected