(exitCode int, stdout, stderr string)
| 91 | } |
| 92 | |
| 93 | func buildCommandSourceCode(exitCode int, stdout, stderr string) string { |
| 94 | return fmt.Sprintf(`package main |
| 95 | import ( |
| 96 | "fmt" |
| 97 | "os" |
| 98 | ) |
| 99 | func main() { |
| 100 | fmt.Printf(%q) |
| 101 | fmt.Fprintf(os.Stderr, %q) |
| 102 | os.Exit(%d) |
| 103 | }`, stdout, stderr, exitCode) |
| 104 | } |
no outgoing calls
no test coverage detected