MCPcopy Create free account
hub / github.com/PostHog/duckgres / envString

Function envString

tests/integration/composefile/compose_test.go:82–91  ·  view source on GitHub ↗
(env map[string]any, key string)

Source from the content-addressed store, hash-verified

80 Ports []string `yaml:"ports"`
81 Environment map[string]any `yaml:"environment"`
82 DependsOn map[string]any `yaml:"depends_on"`
83}
84
85func readCompose(t *testing.T) composeFile {
86 t.Helper()
87 return readComposePath(t, filepath.Join("..", "docker-compose.yml"))
88}
89
90func 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)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected