(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestConfig_Validate_Valid(t *testing.T) { |
| 89 | conf := config.NewDefault() |
| 90 | errs := config.Validate(conf) |
| 91 | if len(errs) != 0 { |
| 92 | t.Errorf("expected no validation errors, got %d:", len(errs)) |
| 93 | for _, e := range errs { |
| 94 | t.Errorf(" - %v", e) |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | func TestConfig_Validate_InvalidFormatter(t *testing.T) { |
| 100 | conf := config.NewDefault() |
nothing calls this directly
no test coverage detected