Skip to content

test: raise coverage above 95% with ServiceTrain and model gap tests#65

Merged
Theauxm merged 1 commit into
mainfrom
test/raise-coverage-above-95
May 6, 2026
Merged

test: raise coverage above 95% with ServiceTrain and model gap tests#65
Theauxm merged 1 commit into
mainfrom
test/raise-coverage-above-95

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 6, 2026

Summary

  • Adds tests covering uncovered branches in ServiceTrain (Left+OCE, output serialization fallback), ServiceTrainExtensions Pending-state guard, Manifest Create/NameType edge cases, Metadata.AddException JSON-deserialization, JunctionMetadata Create/ToString, ParameterEffect ObjectDisposed fallback, ValueTupleConverter.Read, InjectProperties IEnumerable branch, factory delegate resolution in AddJunctionEffect/AddLifecycleHook, and TrainEventReceiverService retry-with-throwing-StopAsync.
  • Local cobertura coverage moves from 95.78% to 97.57%.

Test plan

  • dotnet build clean (zero warnings)
  • dotnet test all green across all five test projects (629 tests)
  • dotnet csharpier check . clean
  • Cobertura aggregate line-rate >95.5%

Adds tests for:
- ServiceTrain Left+OperationCanceled branch (junction-thrown OCE caught
  by default RunInternal) and the inner OnCancelled hook-throw path
- Output serialization fallback when SaveTrainParameters is not configured
- ServiceTrainExtensions Pending-state guard
- Manifest.Create with a null FullName Type, NameType resolution via
  loaded-assembly fallback, and unresolvable-type TypeLoadException
- Metadata.AddException JSON-deserialization branch (Priority 2)
- JunctionMetadata Create + ToString
- ParameterEffect ObjectDisposedException fallback for Input and Output
- ValueTupleConverter Read path
- InjectProperties IEnumerable<T> branch
- AddJunctionEffect / AddLifecycleHook resolution of all registered interfaces
- TrainEventReceiverService retry path with throwing StopAsync
@Theauxm Theauxm merged commit 6d413ab into main May 6, 2026
1 check passed
@Theauxm Theauxm deleted the test/raise-coverage-above-95 branch May 6, 2026 16:56
@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented May 8, 2026

This PR is included in version 1.34.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant