printResultLine prints a piped result line. Every line has all five tab-separated columns, even empty ones, like gh pr checks rows.
(w io.Writer, status string, r Result, reason string)
| 98 | // printResultLine prints a piped result line. Every line has all five |
| 99 | // tab-separated columns, even empty ones, like gh pr checks rows. |
| 100 | func printResultLine(w io.Writer, status string, r Result, reason string) { |
| 101 | var number string |
| 102 | if r.Number > 0 { |
| 103 | number = strconv.Itoa(r.Number) |
| 104 | } |
| 105 | fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", status, number, r.Name, r.Source, reason) |
| 106 | } |
| 107 | |
| 108 | // FailureReason returns what a result line says about err. The line already |
| 109 | // names the artifact, so an error from an artifact request gives only the |
no outgoing calls
no test coverage detected