MCPcopy
hub / github.com/gofiber/fiber / dummyCmd

Function dummyCmd

prefork.go:123–132  ·  view source on GitHub ↗

dummyCmd is for internal prefork testing

()

Source from the content-addressed store, hash-verified

121
122// dummyCmd is for internal prefork testing
123func dummyCmd() *exec.Cmd {
124 command := "go"
125 if storeCommand := dummyChildCmd.Load(); storeCommand != nil && storeCommand != "" {
126 command = storeCommand.(string) //nolint:forcetypeassert,errcheck // We always store a string in here
127 }
128 if runtime.GOOS == windowsOS {
129 return exec.Command("cmd", "/C", command, "version")
130 }
131 return exec.Command(command, "version")
132}

Callers 1

preforkMethod · 0.85

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected