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

Function TestValidateVariables

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

Source from the content-addressed store, hash-verified

243}
244
245func TestValidateVariables(t *testing.T) {
246 bytes, err := os.ReadFile("using-variables.yaml")
247 assert.NilError(t, err)
248 var config map[string]any
249 err = yaml.Unmarshal(bytes, &config)
250 assert.NilError(t, err)
251 assert.NilError(t, Validate(config))
252}
253
254// TestValidateConcurrent ensures Validate can safely be called from several
255// goroutines at once. Run with -race to catch the regression reported in

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…