MCPcopy Create free account
hub / github.com/VKCOM/nocc / runCmdLocallyForTesting

Function runCmdLocallyForTesting

tests/testing_utils.go:34–42  ·  view source on GitHub ↗
(cmdLineStr string)

Source from the content-addressed store, hash-verified

32}
33
34func runCmdLocallyForTesting(cmdLineStr string) (exitCode int, output []byte, err error) {
35 cmdLine := strings.Split(cmdLineStr, " ")
36
37 cmd := exec.Command(cmdLine[0], cmdLine[1:]...)
38
39 output, err = cmd.CombinedOutput()
40 exitCode = cmd.ProcessState.ExitCode()
41 return
42}

Callers 3

Test_relativePathMacroFunction · 0.85

Calls

no outgoing calls

Tested by 3

Test_relativePathMacroFunction · 0.68