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

Function TestInDependencyReverseDownCommandOrder

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

Source from the content-addressed store, hash-verified

105}
106
107func TestInDependencyReverseDownCommandOrder(t *testing.T) {
108 var order []string
109 err := InReverseDependencyOrder(t.Context(), createTestProject(), func(ctx context.Context, service string) error {
110 order = append(order, service)
111 return nil
112 })
113 assert.NilError(t, err, "Error during iteration")
114 assert.DeepEqual(t, []string{"test1", "test2", "test3"}, order)
115}
116
117func TestBuildGraph(t *testing.T) {
118 testCases := []struct {

Callers

nothing calls this directly

Calls 2

InReverseDependencyOrderFunction · 0.85
createTestProjectFunction · 0.85

Tested by

no test coverage detected