Skip to content

Improve error handling, add nil writer check, and enhance test coverage.#32

Merged
AlphaOne1 merged 4 commits into
masterfrom
redaction
Aug 2, 2025
Merged

Improve error handling, add nil writer check, and enhance test coverage.#32
AlphaOne1 merged 4 commits into
masterfrom
redaction

Conversation

@AlphaOne1
Copy link
Copy Markdown
Owner

  • Introduced ErrWriterNil for handling nil writer cases.
  • Enhanced PrintSimpleWriter and PrintLogoWriter with additional validations.
  • Improved test coverage with new test cases for BrokenNIO scenarios.
  • Added t.Parallel() to applicable test cases for better concurrency.

- Introduced `ErrWriterNil` for handling `nil` writer cases.
- Enhanced `PrintSimpleWriter` and `PrintLogoWriter` with additional validations.
- Improved test coverage with new test cases for `BrokenNIO` scenarios.
- Added `t.Parallel()` to applicable test cases for better concurrency.
@AlphaOne1 AlphaOne1 self-assigned this Aug 2, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 2, 2025

Codecov Report

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

Files with missing lines Coverage Δ
geany.go 100.00% <100.00%> (ø)

- Updated `fmt.Errorf` calls to provide more descriptive error messages.
- Modified relevant error assertions in tests to align with the updated error messages.
- Added a changelog entry for improved error message clarity.
- Introduced `TestLogoWriterNil` to verify behavior when writer is `nil`.
- Added `t.Parallel()` for better test concurrency.
@AlphaOne1 AlphaOne1 merged commit 989670e into master Aug 2, 2025
12 checks passed
@AlphaOne1 AlphaOne1 deleted the redaction branch August 2, 2025 16:13
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.

2 participants