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

Function TestDevelopMissingAction

loader/tests/develop_test.go:75–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestDevelopMissingAction(t *testing.T) {
76 _, err := loader.LoadWithContext(context.TODO(), types.ConfigDetails{
77 ConfigFiles: []types.ConfigFile{{Filename: "compose.yml", Content: []byte(`
78name: test
79services:
80 web:
81 image: app
82 build: ./app
83 develop:
84 watch:
85 - path: ./src
86 target: /app/src
87`)}},
88 Environment: map[string]string{},
89 }, func(options *loader.Options) {
90 options.ResolvePaths = false
91 })
92 assert.ErrorContains(t, err, "services.web.develop.watch.0 missing property 'action'")
93}

Callers

nothing calls this directly

Calls 1

LoadWithContextFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…