(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func (tc ValidateTestcase) Run(t *testing.T) { |
| 18 | ws, err := config.Validate(&tc.Conf) |
| 19 | for _, w := range ws { |
| 20 | t.Logf("lint: %v", &w) |
| 21 | } |
| 22 | if tc.Check != nil { |
| 23 | tc.Check(t, &tc.Conf, err) |
| 24 | } else { |
| 25 | if err != nil { |
| 26 | t.Errorf("unexpected error: %v", err) |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | // This test looks a little sprawling, but it's structured by the field name |
| 32 | // into subtests, with the leaf test being the element triggering the failure. |
no test coverage detected