()
| 2210 | } |
| 2211 | |
| 2212 | func ExampleExec_exit_status_not_zero() { |
| 2213 | p := script.Exec("false") |
| 2214 | p.Wait() |
| 2215 | fmt.Println(p.ExitStatus()) |
| 2216 | // Output: |
| 2217 | // 1 |
| 2218 | } |
| 2219 | |
| 2220 | func ExampleFile() { |
| 2221 | script.File("testdata/hello.txt").Stdout() |
nothing calls this directly
no test coverage detected
searching dependent graphs…