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

Function TestValidateSecretConfigNames

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

Source from the content-addressed store, hash-verified

101}
102
103func TestValidateSecretConfigNames(t *testing.T) {
104 config := map[string]any{
105 "configs": map[string]any{
106 "bar": map[string]any{
107 "name": "foobar",
108 },
109 },
110 "secrets": map[string]any{
111 "baz": map[string]any{
112 "name": "foobaz",
113 },
114 },
115 }
116
117 assert.NilError(t, Validate(config))
118 assert.NilError(t, Validate(config))
119}
120
121func TestValidatePlacement(t *testing.T) {
122 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…