Skip to content

test: cover OpenAPI parser malformed-doc, inline response, and $ref body paths#7

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

test: cover OpenAPI parser malformed-doc, inline response, and $ref body paths#7
Theauxm merged 1 commit intomainfrom
test/coverage-gap-tests

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented May 5, 2026

Summary

Adds three OpenAPI parser tests that hit branches with no prior coverage:

  • Malformed/empty document — exercises the diagnostic-error throw path
  • Inline response object schema — BuildOutputType inline-properties branch (and the Unit-fallback branches for no-content and non-JSON responses)
  • $ref request body — BuildInputType reference-resolving branch

Two small fixtures added under tests/Trax.Cli.Tests/Fixtures/Schemas/.

Local line coverage moved from ~89% to ~90% on Trax.Cli.

Test plan

  • dotnet test tests/Trax.Cli.Tests — all passing (3 new)
  • dotnet csharpier check . — clean

@Theauxm Theauxm merged commit d0f0080 into main May 5, 2026
1 check passed
@Theauxm Theauxm deleted the test/coverage-gap-tests branch May 5, 2026 16:42
@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 ☂️

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