MCPcopy Index your code
hub / github.com/maruel/panicparse / overrideEnv

Function overrideEnv

stack/source_test.go:1608–1617  ·  view source on GitHub ↗
(env []string, key, value string)

Source from the content-addressed store, hash-verified

1606const is64Bit = uint64(^uintptr(0)) == ^uint64(0)
1607
1608func overrideEnv(env []string, key, value string) []string {
1609 prefix := key + "="
1610 for i, e := range env {
1611 if strings.HasPrefix(e, prefix) {
1612 env[i] = prefix + value
1613 return env
1614 }
1615 }
1616 return append(env, prefix+value)
1617}
1618
1619func getCrash(t *testing.T, main string, disableInline bool) []byte {
1620 args := []string{"run"}

Callers 1

getCrashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…