• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

go-pkgz / fileutils / 32220826345
72%
master: 72%

Build:
Build:
LAST BUILD BRANCH: fix/example-watch-and-api-coverage
DEFAULT BRANCH: master
Ran 19 Aug 2026 05:48AM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Aug 2026 05:46AM UTC coverage: 72.353% (+2.0%) from 70.326%
32220826345

Pull #11

github

paskal
fix IsFile and IsDir panicking on a stat error other than not-exist

exists guarded only os.IsNotExist, so any other stat failure fell through to
info.IsDir() with info nil. A path under a directory the process cannot read,
or a path the OS rejects outright, panicked with a nil pointer dereference
instead of reporting that the file is not there.

Every stat failure now reports false. Nothing that previously returned a value
changes, only the cases that panicked.

MoveFile gains an unexported moveFile taking the rename call as an argument.
The existing fallback test never reached the copy+delete branch: its first
rename failed only because the destination directory was missing, and the retry
after MkdirAll succeeded. It is renamed to say what it actually covers, and a
new case forces rename to fail so the fallback carries the move, asserting the
two rename attempts and the moved content.

TouchFile tests no longer depend on wall clock. The 100ms sleep is replaced by
backdating the file with os.Chtimes, which also makes the assertion independent
of filesystem timestamp resolution, and the creation case bounds the
modification time from below rather than measuring how fast the runner is.
Pull Request #11: fix IsFile and IsDir panicking on a stat error other than not-exist

6 of 6 new or added lines in 1 file covered. (100.0%)

246 of 340 relevant lines covered (72.35%)

4.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32220826345.1 19 Aug 2026 05:48AM UTC 2
72.35
GitHub Action Run
Source Files on build 32220826345
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #11
  • PR Base - master (#32205977516)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc