Skip to content

test: push Effect aggregate coverage from 84% to 87%#59

Merged
Theauxm merged 2 commits intomainfrom
test/coverage-edge-cases
May 5, 2026
Merged

test: push Effect aggregate coverage from 84% to 87%#59
Theauxm merged 2 commits intomainfrom
test/coverage-edge-cases

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 5, 2026

Summary

  • JunctionLoggerProvider (was at 0%): Before/After throw on null Metadata, Before logs at configured level, After serializes Right output with serializeJunctionData=true and skips it with serializeJunctionData=false, After with Left result doesn't serialize, Dispose is no-op.
  • CancellationCheckProvider (was at 0%): Before with null Metadata is a no-op, Before with Metadata not yet persisted to DB is a no-op (cancellation flag defaults to false), After is no-op, Dispose is no-op.
  • Model Create + ToString paths for WorkQueue, Manifest, ManifestGroup, DeadLetter, BackgroundJob — exercises every property on the constructed model and the JSON-serialized ToString().

The remaining ~13% gap is concentrated in RabbitMQ broadcaster (~175 lines, needs a real broker / testcontainers) and Postgres-backed DataContext logging providers (~78 lines, needs Postgres CI), neither of which fits inside the existing InMemory test setup.

Test plan

  • `dotnet test` — all suites pass (16 new)
  • `dotnet csharpier check .` — clean

Theauxm added 2 commits May 5, 2026 12:46
CI's Release config initializes the JSON serializer's
PropertyNamingPolicy to camelCase, but local dev runs without that wiring
produced PascalCase output. The point of the assertions was to exercise
ToString(); the specific property-name casing is irrelevant.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Theauxm Theauxm merged commit 0e12257 into main May 5, 2026
2 checks passed
@Theauxm Theauxm deleted the test/coverage-edge-cases branch May 5, 2026 19:01
@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