Skip to content

Comments

refactor: delegate_provider! macro for AnyProvider dispatch#303

Merged
bug-ops merged 2 commits intomainfrom
refactor/any-provider-macro
Feb 15, 2026
Merged

refactor: delegate_provider! macro for AnyProvider dispatch#303
bug-ops merged 2 commits intomainfrom
refactor/any-provider-macro

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 15, 2026

Summary

  • Introduce delegate_provider! macro to eliminate repeated match blocks in AnyProvider
  • All 7 LlmProvider trait methods use macro delegation instead of manual match arms
  • set_status_tx remains hand-written due to non-uniform per-variant logic
  • 1 file changed, -70/+24 lines

Closes #299

@github-actions github-actions bot added llm LLM provider related rust refactor size/M labels Feb 15, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #303      +/-   ##
==========================================
+ Coverage   79.96%   80.00%   +0.04%     
==========================================
  Files          98       98              
  Lines       23961    23926      -35     
==========================================
- Hits        19160    19143      -17     
+ Misses       4801     4783      -18     
Files with missing lines Coverage Δ
crates/zeph-llm/src/any.rs 94.67% <100.00%> (+5.41%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bug-ops bug-ops enabled auto-merge (squash) February 15, 2026 11:49
@bug-ops bug-ops force-pushed the refactor/any-provider-macro branch from aa865ab to d6691ff Compare February 15, 2026 11:53
@bug-ops bug-ops merged commit 43c7ecc into main Feb 15, 2026
18 checks passed
@bug-ops bug-ops deleted the refactor/any-provider-macro branch February 15, 2026 12:16
@bug-ops bug-ops mentioned this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: AnyProvider delegate macro

2 participants