test: cover pipes and filters generator hosts#424
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
Adds TinyBDD test coverage for the PipesAndFilters pipeline generator and hardens the generator to correctly emit nested containing type wrappers, raising source coverage from 84.2% to 98.8%.
Changes:
- Emit containing partial type wrappers around the generated factory so nested hosts compile correctly.
- Extract
GetContainingTypesandAppendTypeDeclarationhelpers (mirroringEventStoreGenerator). - Add TinyBDD scenarios covering defaults, host shapes, escaped pipeline names, nested accessibility variants, and malformed context arguments.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/PatternKit.Generators/Messaging/PipesAndFiltersPipelineGenerator.cs | Adds nested type wrappers and refactors emission helpers. |
| test/PatternKit.Generators.Tests/PipesAndFiltersPipelineGeneratorTests.cs | Adds scenarios for defaults, type shapes, nested wrappers, and malformed args. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Test Results 12 files 12 suites 10m 15s ⏱️ Results for commit 3bed222. |
Code Coverage |
🔍 PR Validation ResultsVersion: `` ✅ Validation Steps
📊 ArtifactsDry-run artifacts have been uploaded and will be available for 7 days. This comment was automatically generated by the PR validation workflow. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #424 +/- ##
==========================================
+ Coverage 90.03% 95.97% +5.93%
==========================================
Files 551 551
Lines 44205 44225 +20
Branches 6361 6364 +3
==========================================
+ Hits 39800 42444 +2644
+ Misses 1924 1781 -143
+ Partials 2481 0 -2481
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Part of #413.
Validation