(output string)
| 217 | } |
| 218 | |
| 219 | func 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 | |
| 226 | func TestMain(m *testing.M) { |
| 227 | os.Exit(testscript.RunMain(m, map[string]func() int{ |
no outgoing calls
no test coverage detected