()
| 2202 | } |
| 2203 | |
| 2204 | func ExampleExec_exit_status_zero() { |
| 2205 | p := script.Exec("echo") |
| 2206 | p.Wait() |
| 2207 | fmt.Println(p.ExitStatus()) |
| 2208 | // Output: |
| 2209 | // 0 |
| 2210 | } |
| 2211 | |
| 2212 | func ExampleExec_exit_status_not_zero() { |
| 2213 | p := script.Exec("false") |
nothing calls this directly
no test coverage detected
searching dependent graphs…