MCPcopy
hub / github.com/docker/compose / TestInDependencyUpCommandOrder

Function TestInDependencyUpCommandOrder

pkg/compose/dependencies_test.go:97–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestInDependencyUpCommandOrder(t *testing.T) {
98 var order []string
99 err := InDependencyOrder(t.Context(), createTestProject(), func(ctx context.Context, service string) error {
100 order = append(order, service)
101 return nil
102 })
103 assert.NilError(t, err, "Error during iteration")
104 assert.DeepEqual(t, []string{"test3", "test2", "test1"}, order)
105}
106
107func TestInDependencyReverseDownCommandOrder(t *testing.T) {
108 var order []string

Callers

nothing calls this directly

Calls 2

InDependencyOrderFunction · 0.85
createTestProjectFunction · 0.85

Tested by

no test coverage detected