(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestValidateUndefinedTopLevelOption(t *testing.T) { |
| 139 | config := dict{ |
| 140 | "version": "3.0", |
| 141 | "helicopters": dict{ |
| 142 | "foo": dict{ |
| 143 | "image": "busybox", |
| 144 | }, |
| 145 | }, |
| 146 | } |
| 147 | |
| 148 | err := Validate(config, "3.0") |
| 149 | assert.ErrorContains(t, err, "Additional property helicopters is not allowed") |
| 150 | } |
| 151 | |
| 152 | func TestValidateAllowsXTopLevelFields(t *testing.T) { |
| 153 | config := dict{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…