(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func TestConfig_GetFormatter(t *testing.T) { |
| 54 | conf := config.NewDefault() |
| 55 | f, err := config.GetFormatter(conf) |
| 56 | if err != nil { |
| 57 | t.Fatalf("unexpected error: %v", err) |
| 58 | } |
| 59 | if f == nil { |
| 60 | t.Fatal("expected non-nil formatter") |
| 61 | } |
| 62 | if f.Name() != "default" { |
| 63 | t.Errorf("expected formatter name 'default', got %q", f.Name()) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func TestConfig_GetFormatterJSON(t *testing.T) { |
| 68 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected