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

Function envFromMap

main_test.go:11–15  ·  view source on GitHub ↗
(values map[string]string)

Source from the content-addressed store, hash-verified

9)
10
11func envFromMap(values map[string]string) func(string) string {
12 return func(key string) string {
13 return values[key]
14 }
15}
16
17func TestValidateRunModeRejectsUnsupportedMode(t *testing.T) {
18 for _, mode := range []string{"standalone", "control-plane", "duckdb-service", "reshard-runner"} {

Calls

no outgoing calls

Tested by

no test coverage detected