MCPcopy Create free account
hub / github.com/cli/cli / outputForEnvironment

Function outputForEnvironment

acceptance/acceptance_test.go:219–224  ·  view source on GitHub ↗
(output string)

Source from the content-addressed store, hash-verified

217}
218
219func outputForEnvironment(output string) (string, error) {
220 if strings.TrimSpace(output) == "" {
221 return "", errors.New("command output is empty")
222 }
223 return strings.TrimRight(output, "\n"), nil
224}
225
226func TestMain(m *testing.M) {
227 os.Exit(testscript.RunMain(m, map[string]func() int{

Callers 2

TestOutputForEnvironmentFunction · 0.85
sharedCmdsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected