Skip to content

test(coverage): add router coverage suite — 79% → 93%#28

Closed
orvi2014 wants to merge 1 commit into
mainfrom
chore/production-readiness-v0.5.0
Closed

test(coverage): add router coverage suite — 79% → 93%#28
orvi2014 wants to merge 1 commit into
mainfrom
chore/production-readiness-v0.5.0

Conversation

@orvi2014

Copy link
Copy Markdown
Owner

400 tests, 0 warnings. New test_baar_router_coverage.py covers:

  • chat(), run(), stream_chat() happy paths + kill-switch + failover
  • achat(), arun(), astream_chat() async equivalents
  • value gate: reject, downgrade, clamp, UserWarning paths
  • domain model overrides (string and tuple forms)
  • telemetry file creation and OSError handling
  • main.py entrypoint (0% → 100%)
  • token_counter fallback, _check_litellm_version, retry helpers
  • BAARConfig validation edge cases

Description

Please include a summary of the change and which issue it addresses.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

400 tests, 0 warnings. New test_baar_router_coverage.py covers:
- chat(), run(), stream_chat() happy paths + kill-switch + failover
- achat(), arun(), astream_chat() async equivalents
- value gate: reject, downgrade, clamp, UserWarning paths
- domain model overrides (string and tuple forms)
- telemetry file creation and OSError handling
- __main__.py entrypoint (0% → 100%)
- token_counter fallback, _check_litellm_version, retry helpers
- BAARConfig validation edge cases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov-commenter

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!

@orvi2014

Copy link
Copy Markdown
Owner Author

Closing — the only change in this PR (tests/test_baar_router_coverage.py) was already merged to main via PR #25. Nothing new to add.

@orvi2014 orvi2014 closed this May 12, 2026
@orvi2014 orvi2014 deleted the chore/production-readiness-v0.5.0 branch May 12, 2026 00: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.

2 participants