Skip to content

test: cover data-context factories, sqlite migrator, and transaction junctions#62

Merged
Theauxm merged 1 commit intomainfrom
test/data-factory-and-junction-coverage
May 6, 2026
Merged

test: cover data-context factories, sqlite migrator, and transaction junctions#62
Theauxm merged 1 commit intomainfrom
test/data-factory-and-junction-coverage

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 6, 2026

Summary

  • TransactionJunctionTests: BeginTransaction and CommitTransaction junctions against real SQLite. Junctions/ folder was 0% covered.
  • SqliteContextProviderFactoryTests / PostgresContextProviderFactoryTests: exercise the async CreateDbContextAsync path and Count counter, neither of which were reached by the existing fixtures.
  • SqliteDatabaseMigratorTests: happy-path embedded-script application, the !Successful + catch-rethrow branch via an unwritable path, and the standalone CreateEngineWithEmbeddedScripts factory.

Local Trax.Effect coverage moves from ~95% to ~96% with all 614 tests passing.

Test plan

  • dotnet build — zero warnings
  • dotnet csharpier check . — clean
  • dotnet test across all Effect test projects — 614/614 passing locally (Postgres + SQLite)

…junctions

- TransactionJunctionTests: BeginTransaction and CommitTransaction
  junctions against real SQLite (Junctions/ folder was 0% covered).
- SqliteContextProviderFactoryTests / PostgresContextProviderFactoryTests:
  exercise the async CreateDbContextAsync path and Count counter that
  weren't reached by existing fixtures.
- SqliteDatabaseMigratorTests: happy-path embedded-script application,
  the !Successful + catch-rethrow branch via an unwritable path, and
  the standalone CreateEngineWithEmbeddedScripts factory.
@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!

@Theauxm Theauxm merged commit 1aed9c7 into main May 6, 2026
2 checks passed
@Theauxm Theauxm deleted the test/data-factory-and-junction-coverage branch May 6, 2026 00:49
@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