(file *os.File)
| 303 | } |
| 304 | |
| 305 | func isTerminal(file *os.File) bool { |
| 306 | info, err := file.Stat() |
| 307 | if err != nil { |
| 308 | return false |
| 309 | } |
| 310 | return info.Mode()&os.ModeCharDevice != 0 |
| 311 | } |
| 312 | |
| 313 | // ensure pathutil import is used (kept for future cache-dir overrides |
| 314 | // done by tests via CAM_CACHE_DIR). |
no outgoing calls
no test coverage detected