()
| 35 | } |
| 36 | |
| 37 | func (r *runner) Run() (*exec.Cmd, error) { |
| 38 | if r.needsRefresh() { |
| 39 | r.Kill() |
| 40 | } |
| 41 | |
| 42 | if r.command == nil || r.Exited() { |
| 43 | err := r.runBin() |
| 44 | if err != nil { |
| 45 | log.Print("Error running: ", err) |
| 46 | } |
| 47 | time.Sleep(250 * time.Millisecond) |
| 48 | return r.command, err |
| 49 | } else { |
| 50 | return r.command, nil |
| 51 | } |
| 52 | |
| 53 | } |
| 54 | |
| 55 | func (r *runner) Info() (os.FileInfo, error) { |
| 56 | return os.Stat(r.bin) |
nothing calls this directly
no test coverage detected