test: harden core runtime coverage gaps#462
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
This PR adds focused runtime tests to close coverage gaps for core messaging, bulkhead, and table data gateway behavior tied to issue #414.
Changes:
- Adds EventDrivenConsumer coverage for default contexts, thrown handlers, null messages, and result validation.
- Adds synchronous BulkheadPolicy scenarios for rejection, queueing, timeout, and metadata/result assertions.
- Adds TableDataGateway scenarios for missing mutations, comparer-backed listing/conflicts, cancellation, and null mutation validation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
test/PatternKit.Tests/Messaging/Consumers/EventDrivenConsumerTests.cs |
Adds behavioral tests for consumer acceptance and handler result validation paths. |
test/PatternKit.Tests/Cloud/Bulkhead/BulkheadPolicyTests.cs |
Adds synchronous bulkhead queue/reject/timeout coverage. |
test/PatternKit.Tests/Application/TableDataGateway/TableDataGatewayTests.cs |
Adds gateway mutation, comparer, cancellation, and validation coverage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| await entered.Task; | ||
|
|
||
| var second = Task.Run(() => policy.Execute(static () => 2)); | ||
| SpinWait.SpinUntil(() => policy.QueuedCount == 1, TimeSpan.FromSeconds(2)); |
Test Results 12 files 12 suites 10m 36s ⏱️ Results for commit cf7f8fd. ♻️ This comment has been updated with latest results. |
🔍 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 #462 +/- ##
==========================================
+ Coverage 96.68% 96.91% +0.22%
==========================================
Files 579 579
Lines 47147 47147
Branches 3095 6757 +3662
==========================================
+ Hits 45586 45692 +106
+ Misses 1561 1455 -106
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:
|
Code Coverage |
Summary
Validation
TableDataGatewayTests|FullyQualifiedNameEventDrivenConsumerTests"Refs #414