MCPcopy Create free account
hub / github.com/compose-spec/compose-go / TestValidate

Function TestValidate

schema/schema_test.go:30–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestValidate(t *testing.T) {
31 config := map[string]any{
32 "services": map[string]any{
33 "foo": map[string]any{
34 "image": "busybox",
35 },
36 },
37 }
38
39 assert.NilError(t, Validate(config))
40}
41
42func TestValidateUndefinedTopLevelOption(t *testing.T) {
43 config := map[string]any{

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…