Skip to content

test(logger): improve testing for FilteredLogger#30

Merged
adcondev merged 2 commits into
masterfrom
test-logging-improvement-9828601996824816041
Feb 13, 2026
Merged

test(logger): improve testing for FilteredLogger#30
adcondev merged 2 commits into
masterfrom
test-logging-improvement-9828601996824816041

Conversation

@adcondev

Copy link
Copy Markdown
Owner

Refactored FilteredLogger in internal/logging/logging.go to accept io.Writer interface, enabling testing with bytes.Buffer. Added comprehensive unit tests in internal/logging/logging_test.go covering verbose and non-verbose modes, and critical vs non-critical message filtering.


PR created automatically by Jules for task 9828601996824816041 started by @adcondev

- Refactor `FilteredLogger` to use `io.Writer` instead of `*os.File` to allow dependency injection.
- Add `internal/logging/logging_test.go` to test log filtering logic.
- Verify filtering of non-critical messages in non-verbose mode.
- Verify all messages are logged in verbose mode.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions

Copy link
Copy Markdown

👋 Thanks for opening this PR, @adcondev!

Here's what will happen next:

  • 🤖 Automated checks will run
  • 🏷️ Labels will be added automatically
  • 👀 A maintainer will review your changes

Please make sure:

  • ✅ All tests pass
  • 📝 Code follows project conventions
  • 📋 Changes are well documented

@github-actions

github-actions Bot commented Feb 12, 2026

Copy link
Copy Markdown

⚡ Benchmark Results

⚠️ No benchmarks found in the current codebase.

To add benchmarks, create functions starting with Benchmark in *_test.go files.

@codecov-commenter

codecov-commenter commented Feb 12, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adcondev adcondev changed the title 🧪 Improve testing for FilteredLogger test(logger): improve testing for FilteredLogger Feb 13, 2026
@adcondev adcondev marked this pull request as ready for review February 13, 2026 17:48
Copilot AI review requested due to automatic review settings February 13, 2026 17:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adcondev adcondev merged commit a2777bd into master Feb 13, 2026
6 checks passed
@adcondev adcondev deleted the test-logging-improvement-9828601996824816041 branch February 13, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants