(d time.Duration)
| 22 | ) |
| 23 | |
| 24 | func PrettifyDurationOutput(d time.Duration) string { |
| 25 | if d < time.Second { |
| 26 | return "0s" |
| 27 | } |
| 28 | return prettifyDurationRegexp.ReplaceAllString(d.String(), "") |
| 29 | } |
| 30 | |
| 31 | func FileExists(fileName string) bool { |
| 32 | if _, err := os.Stat(fileName); err == nil { |
no test coverage detected
searching dependent graphs…