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

Function createTestProject

pkg/compose/dependencies_test.go:33–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func createTestProject() *types.Project {
34 return &types.Project{
35 Services: types.Services{
36 "test1": {
37 Name: "test1",
38 DependsOn: map[string]types.ServiceDependency{
39 "test2": {},
40 },
41 },
42 "test2": {
43 Name: "test2",
44 DependsOn: map[string]types.ServiceDependency{
45 "test3": {},
46 },
47 },
48 "test3": {
49 Name: "test3",
50 },
51 },
52 }
53}
54
55func TestTraversalWithMultipleParents(t *testing.T) {
56 dependent := types.ServiceConfig{

Calls

no outgoing calls

Tested by

no test coverage detected