()
| 273 | } |
| 274 | |
| 275 | func getTmpClientPath() string { |
| 276 | tmpDir := "/tmp/" |
| 277 | if os.Getenv("TMPDIR") != "" { |
| 278 | tmpDir = os.Getenv("TMPDIR") |
| 279 | } |
| 280 | return path.Join(tmpDir, "hishtory-client") |
| 281 | } |
| 282 | |
| 283 | func downloadFile(filename, url string) error { |
| 284 | // Support simulating network errors for the purposes of testing |
no outgoing calls
no test coverage detected