(t *testing.T)
| 258 | } |
| 259 | |
| 260 | func TestValidateInvalidVersion(t *testing.T) { |
| 261 | config := dict{ |
| 262 | "version": "2.1", |
| 263 | "services": dict{ |
| 264 | "foo": dict{ |
| 265 | "image": "busybox", |
| 266 | }, |
| 267 | }, |
| 268 | } |
| 269 | |
| 270 | err := Validate(config, "2.1") |
| 271 | assert.ErrorContains(t, err, "unsupported Compose file version: 2.1") |
| 272 | } |
| 273 | |
| 274 | type array []any |
| 275 |
nothing calls this directly
no test coverage detected
searching dependent graphs…