TestBinaries tests the Go binaries by executing them with the --help flag.
()
| 206 | |
| 207 | // TestBinaries tests the Go binaries by executing them with the --help flag. |
| 208 | func (Go) TestBinaries() error { |
| 209 | if mg.Verbose() { |
| 210 | fmt.Println("Testing Go binaries") |
| 211 | } |
| 212 | for _, binary := range goBinaries { |
| 213 | _, err := outputGo("run", binary, "config") |
| 214 | if err != nil { |
| 215 | return err |
| 216 | } |
| 217 | } |
| 218 | return nil |
| 219 | } |
| 220 | |
| 221 | const goCoverageFile = "coverage.out" |
| 222 |
nothing calls this directly
no test coverage detected