test: add PromptAssembler tests for 100% coverage#61
test: add PromptAssembler tests for 100% coverage#61jordanpartridge wants to merge 1 commit intomasterfrom
Conversation
Add comprehensive tests covering all PromptAssembler code paths: - assemble() with passing, failing, and mixed check results - transform() routing to PHPStan, test failure, and default transformers - buildCombinedPrompt() singular/plural formatting and quick reference - truncate() boundary conditions (under, at, and over 2000 chars) - End-to-end tests with real PHPStan JSON and JUnit XML inputs Closes #47
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Coverage Report
Files Below Threshold
🏆 Synapse Sentinel Gate |
🔧 Synapse Sentinel: 2 checks need attentionThe following issues must be resolved before this PR can be merged: Test Failures (1 total)Fix these failing tests: 1. CertifyCommand → handle → it returns failure when any check fails 0.13sFAIL at Fix: Review the test expectation vs actual behavior. Check the tested code logic. Security AuditReview the output and fix any issues.Quick Reference:
🤖 Generated by Synapse Sentinel - View Run |
Summary
tests/Unit/Services/PromptAssemblerTest.phpwith 25 tests covering all code paths inPromptAssemblerassemble(),transform(),buildCombinedPrompt(), andtruncate()methodsTest plan
describe()/it()blocks per project conventionsCloses #47