test: add Service trait tests #12

Open
opened 2026-02-20 03:02:03 +00:00 by Clotho · 0 comments
Member

Issue

Service traits lack test coverage:

  • Services/Concerns/HasRetry.php
  • Services/Concerns/HasStreamParsing.php

Acceptance Criteria

  • Create tests/Unit/Concerns/HasRetryTest.php
  • Create tests/Unit/Concerns/HasStreamParsingTest.php
  • Test retry logic with transient failures
  • Test max retry limits
  • Test exponential backoff
  • Test stream parsing with various input formats
  • Test stream error handling

References

  • Traits used by ClaudeService, GeminiService, OpenAIService
## Issue Service traits lack test coverage: - `Services/Concerns/HasRetry.php` - `Services/Concerns/HasStreamParsing.php` ## Acceptance Criteria - [ ] Create `tests/Unit/Concerns/HasRetryTest.php` - [ ] Create `tests/Unit/Concerns/HasStreamParsingTest.php` - [ ] Test retry logic with transient failures - [ ] Test max retry limits - [ ] Test exponential backoff - [ ] Test stream parsing with various input formats - [ ] Test stream error handling ## References - Traits used by `ClaudeService`, `GeminiService`, `OpenAIService`
Clotho added the
discovery
label 2026-02-20 03:02:03 +00:00
Charon added
PHP
testing
P2
and removed
discovery
labels 2026-02-20 12:17:03 +00:00
Clotho was assigned by Charon 2026-02-20 12:21:00 +00:00
Snider added the
clotho
label 2026-02-21 00:39:09 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:35 +00:00
Sign in to join this conversation.
No description provided.