Skip to content

test: cover Trax attributes and ValueTupleConverter#57

Merged
Theauxm merged 1 commit into
mainfrom
test/coverage-gap-tests
May 5, 2026
Merged

test: cover Trax attributes and ValueTupleConverter#57
Theauxm merged 1 commit into
mainfrom
test/coverage-gap-tests

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 5, 2026

Summary

Adds tests for attribute classes that were sitting at 0% line coverage:

  • TraxAuthorizeAttribute — default ctor, policy ctor, Roles init property
  • TraxConcurrencyLimitAttribute — valid limits, plus the >= 1 guard (rejects 0 and negatives)
  • TraxQueryAttribute — defaults and full init-property surface
  • TraxQueryModelAttribute — defaults (Paging/Filtering/Sorting/Projection = true, BindFields = Implicit) and overrides

Also adds a small ValueTupleConverter test covering the CanConvert predicate, the serialize path, and the wrong-array-length JsonException branch.

Local line coverage on Trax.Effect moved from ~80% to ~81% with these. The remaining gap to 90% is in code that needs infrastructure (RabbitMQ broadcaster, DataContext logging, EffectJunction runtime) — separate PRs.

Test plan

  • dotnet test tests/Trax.Effect.Tests.Integration — passing (14 new)
  • dotnet csharpier check . — clean

@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@Theauxm Theauxm merged commit c5393fa into main May 5, 2026
2 checks passed
@Theauxm Theauxm deleted the test/coverage-gap-tests branch May 5, 2026 16:44
@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