Skip to content

test(core): cover empty atomic writes - #1063

Merged
ben-challis merged 1 commit into
codex/fix-test-metadata-nonfinite-diagnosticsfrom
codex/test-atomic-empty-write
Jul 30, 2026
Merged

test(core): cover empty atomic writes#1063
ben-challis merged 1 commit into
codex/fix-test-metadata-nonfinite-diagnosticsfrom
codex/test-atomic-empty-write

Conversation

@ben-challis

Copy link
Copy Markdown
Owner

Adds focused regression coverage for successful empty atomic writes. The test replaces existing nonempty content with an empty string and verifies that no temporary file remains.\n\nThis detects a strict-to-loose false comparison mutation: file_put_contents() returns integer 0 for a successful zero-byte write, which MUST NOT be treated as failure.

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@ben-challis
ben-challis merged commit 53c022e into codex/fix-test-metadata-nonfinite-diagnostics Jul 30, 2026
16 checks passed
@ben-challis
ben-challis deleted the codex/test-atomic-empty-write branch July 30, 2026 10:31
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