Skip to content

Refactor SetWriter function to allow resetting output to os.Stdout#28

Merged
trheyi merged 1 commit into
YaoApp:mainfrom
trheyi:main
Feb 23, 2026
Merged

Refactor SetWriter function to allow resetting output to os.Stdout#28
trheyi merged 1 commit into
YaoApp:mainfrom
trheyi:main

Conversation

@trheyi

@trheyi trheyi commented Feb 23, 2026

Copy link
Copy Markdown
Contributor
  • Updated SetWriter to accept nil as an argument to reset the output target to os.Stdout.
  • Modified unit tests to utilize a buffered writer for capturing output during tests, ensuring consistent logging behavior.

- Updated SetWriter to accept nil as an argument to reset the output target to os.Stdout.
- Modified unit tests to utilize a buffered writer for capturing output during tests, ensuring consistent logging behavior.
@trheyi trheyi merged commit a4c34ee into YaoApp:main Feb 23, 2026
3 of 4 checks passed
@codecov

codecov Bot commented Feb 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.30%. Comparing base (52c719f) to head (a82cdcf).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
- Coverage   89.93%   89.30%   -0.64%     
==========================================
  Files           9        9              
  Lines        1093      972     -121     
==========================================
- Hits          983      868     -115     
+ Misses        101       95       -6     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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