Skip to content

test: harden routing generator coverage#479

Merged
JerrettDavis merged 1 commit into
mainfrom
coverage/harden-generator-gaps-413-o
May 31, 2026
Merged

test: harden routing generator coverage#479
JerrettDavis merged 1 commit into
mainfrom
coverage/harden-generator-gaps-413-o

Conversation

@JerrettDavis

Copy link
Copy Markdown
Owner

Summary

  • add RoutingSlip generator scenarios for global struct mixed sync/async factories, escaped names, and invalid step shapes
  • add RecipientList generator scenarios for global struct mixed sync/async factories, escaped names, and invalid recipient shapes
  • move generator coverage to 98.01% locally

Refs #413

Verification

  • dotnet test test\PatternKit.Generators.Tests\PatternKit.Generators.Tests.csproj --configuration Release -p:TestTfmsInParallel=false --filter "FullyQualifiedNameRoutingSlipGeneratorTests|FullyQualifiedNameRecipientListGeneratorTests"
  • dotnet test test\PatternKit.Generators.Tests\PatternKit.Generators.Tests.csproj --configuration Release -p:TestTfmsInParallel=false --collect:"XPlat Code Coverage" --results-directory TestResults-generators-current -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura
  • PatternKit.Generators coverage: 98.01%

Copilot AI review requested due to automatic review settings May 31, 2026 16:31
@github-actions

github-actions Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new TinyBDD generator test scenarios for the RoutingSlip and RecipientList source generators to cover previously untested branches: global-namespace partial struct hosts, mixed sync/async factory emission, escaped quote characters in generated names, and multiple invalid annotated methods producing repeated diagnostics.

Changes:

  • Add global-struct + mixed sync/async + escaped-name scenarios for the RoutingSlip and RecipientList generators.
  • Add multi-invalid-shape scenarios asserting one PKRS003 / PKRL003 diagnostic per offending method.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/PatternKit.Generators.Tests/RoutingSlipGeneratorTests.cs Adds global partial struct mixed sync/async test and invalid-step-shapes diagnostic test.
test/PatternKit.Generators.Tests/RecipientListGeneratorTests.cs Adds global partial struct mixed sync/async test and invalid-recipient-shapes diagnostic test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

Test Results

    12 files      12 suites   11m 31s ⏱️
 4 036 tests  4 036 ✅ 0 💤 0 ❌
12 539 runs  12 539 ✅ 0 💤 0 ❌

Results for commit 066a165.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

🔍 PR Validation Results

Version: ``

✅ Validation Steps

  • Build solution
  • Run tests
  • Build documentation
  • Dry-run NuGet packaging

📊 Artifacts

Dry-run artifacts have been uploaded and will be available for 7 days.


This comment was automatically generated by the PR validation workflow.

@codecov

codecov Bot commented May 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.39%. Comparing base (752f6de) to head (066a165).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #479      +/-   ##
==========================================
+ Coverage   97.29%   97.39%   +0.10%     
==========================================
  Files         579      579              
  Lines       47188    47191       +3     
  Branches     3076     6221    +3145     
==========================================
+ Hits        45911    45963      +52     
+ Misses       1277     1228      -49     
Flag Coverage Δ
unittests 97.39% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JerrettDavis JerrettDavis force-pushed the coverage/harden-generator-gaps-413-o branch from 35d0618 to 066a165 Compare May 31, 2026 16:46
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage

Summary
  Generated on: 05/31/2026 - 16:52:57
  Coverage date: 05/31/2026 - 16:50:45 - 05/31/2026 - 16:52:47
  Parser: MultiReport (12x Cobertura)
  Assemblies: 5
  Classes: 1715
  Files: 579
  Line coverage: 97.3%
  Covered lines: 45918
  Uncovered lines: 1273
  Coverable lines: 47191
  Total lines: 100772
  Branch coverage: 84.2% (14545 of 17272)
  Covered branches: 14545
  Total branches: 17272
  Method coverage: 97.2% (8971 of 9227)
  Full method coverage: 91.5% (8445 of 9227)
  Covered methods: 8971
  Fully covered methods: 8445
  Total methods: 9227

PatternKit.Core                                                                                                       96%
  PatternKit.Application.ActivityTracking.ActivityGateState                                                          100%
  PatternKit.Application.ActivityTracking.ActivityLease                                                              100%
  PatternKit.Application.ActivityTracking.ActivityRecord                                                             100%
  PatternKit.Application.ActivityTracking.ActivityTracker                                                            100%
  PatternKit.Application.Aggregates.AggregateCommandHandler<T1, T2, T3>                                              100%
  PatternKit.Application.Aggregates.AggregateCommandResult<T>                                                        100%
  PatternKit.Application.Aggregates.AggregateRoot<T1, T2>                                                            100%
  PatternKit.Application.AntiCorruption.AntiCorruptionLayer<T1, T2>                                                 90.4%
  PatternKit.Application.AntiCorruption.AntiCorruptionResult<T>                                                      100%
  PatternKit.Application.AuditLog.AuditLogAppendResult<T>                                                           85.7%
  PatternKit.Application.AuditLog.InMemoryAuditLog<T1, T2>                                                          95.4%
  PatternKit.Application.BoundedContexts.BoundedContextAdapter                                                       100%
  PatternKit.Application.BoundedContexts.BoundedContextCapability                                                   83.3%
  PatternKit.Application.BoundedContexts.BoundedContextDescriptor                                                   95.4%
  PatternKit.Application.ContextMaps.ContextMapDescriptor                                                           96.8%
  PatternKit.Application.ContextMaps.ContextMapRelationship                                                          100%
  PatternKit.Application.DataMapping.DataMapper<T1, T2>                                                             94.6%
  PatternKit.Application.DataMapping.DataMapperError                                                                  90%
  PatternKit.Application.DataMapping.DataMapperResult<T>                                                            84.6%
  PatternKit.Application.DomainEvents.DomainEventDispatcher<T>                                                      95.4%
  PatternKit.Application.DomainEvents.DomainEventDispatchResult                                                      100%
  PatternKit.Application.DomainServices.DomainServiceOperation<T1, T2>                                               100%
  PatternKit.Application.DomainServices.DomainServiceRegistry<T1, T2>                                                100%
  PatternKit.Application.EventSourcing.EventStoreAppendResult                                                        100%
  PatternKit.Application.EventSourcing.InMemoryEventStore<T1, T2>                                                   97.9%
  PatternKit.Application.EventSourcing.StoredEvent<T1, T2>                                                            80%
  PatternKit.Application.EventualConsistency.EventualConsistencyEvaluation<T>                                       92.3%
  PatternKit.Application.EventualConsistency.EventualConsistencyMonitor<T>                                          97.2%
  PatternKit.Application.EventualConsistency.EventualConsistencyMonitorState<T>                                      100%
  PatternKit.Application.EventualConsistency.EventualConsistencyWatermarks<T>                                       96.7%
  PatternKit.Application.FeatureToggles.FeatureToggleDecision                                                       87.5%
  PatternKit.Application.FeatureToggles.FeatureToggleRule<T>                                                         100%
  PatternKit.Application.FeatureToggles.FeatureToggleSet<T>                                                         96.9%
  PatternKit.Application.IdentityMap.IdentityMap<T1, T2>                                                             100%
  PatternKit.Application.IdentityMap.IdentityMapResult<T>                                                           92.8%
  PatternKit.Application.ManualTaskGates.ManualTaskGate<T>                                                          98.5%
  PatternKit.Application.ManualTaskGates.ManualTaskGateState<T>                                                      100%
  PatternKit.Application.ManualTaskGates.ManualTaskRecord<T>                                                        96.9%

@JerrettDavis JerrettDavis merged commit 89ad9a7 into main May 31, 2026
12 checks passed
@JerrettDavis JerrettDavis deleted the coverage/harden-generator-gaps-413-o branch May 31, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants