(env map[string]any, key string)
| 80 | Ports []string `yaml:"ports"` |
| 81 | Environment map[string]any `yaml:"environment"` |
| 82 | DependsOn map[string]any `yaml:"depends_on"` |
| 83 | } |
| 84 | |
| 85 | func readCompose(t *testing.T) composeFile { |
| 86 | t.Helper() |
| 87 | return readComposePath(t, filepath.Join("..", "docker-compose.yml")) |
| 88 | } |
| 89 | |
| 90 | func readComposePath(t *testing.T, path string) composeFile { |
| 91 | t.Helper() |
| 92 | raw, err := os.ReadFile(path) |
| 93 | if err != nil { |
| 94 | t.Fatalf("read docker-compose.yml: %v", err) |
no outgoing calls
no test coverage detected