Skip to content

test: cover error paths (rebase of #25) - #30

Closed
HaoZeke wants to merge 5 commits into
mainfrom
test/error-paths-coverage
Closed

HaoZeke wants to merge 5 commits into
mainfrom
test/error-paths-coverage

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Rebase of #25 onto main 1b31240. Drops the api.org listing commit, since main already carries the #24 and #26 API docs. Supersedes #25.

…rename

Add openat, write, and renameat hooks to atomic.Ops and test atomicWrite failures on ENOSPC, EROFS, and EXDEV along with makedirs and fsyncDir error paths.
Test fstat, statAt, realpathFd, realpath, openRegular, openDir, copyTo, appendLine, readAll, moveAcross, replaceContents, and deleteTree error paths.
Add unit tests for which rejection cases, groupAlive with an absent pgid, zero-pgid signal helpers, and run invalid arguments, overflow, and exec_error.
Verify gzipInPlace returns NotFound, InvalidArgument, SymLink, TooManyLinks, and Exists for missing files, directories, symlinks, hard links, and existing .gz archives.
Verify cli.put and cli.print ignore EBADF on stack and heap-formatted messages, and verify cli.versionLine formatting.
@HaoZeke

HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #44

@HaoZeke HaoZeke closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant