Skip to content

Simplify type dispatch and clean up test declarations - #270

Merged
bwaldvogel merged 2 commits into
mainfrom
cleanup/test-exceptions-and-pattern-switches
Nov 16, 2026
Merged

bwaldvogel merged 2 commits into
mainfrom
cleanup/test-exceptions-and-pattern-switches

Conversation

@bwaldvogel

Copy link
Copy Markdown
Owner

Use pattern switches for type dispatch and remove redundant throws declarations from tests.

Remove unnecessary checked-exception declarations from tests, shared fixtures and backend factories. Keep declarations required for I/O, SSL and asynchronous operations, and update the example test in the README.
Replace suitable type-based if/else chains in expression conversion, BSON cloning, lookup configuration, query matching, wire message handling and PostgreSQL value conversion. Preserve null and Missing handling and mutable collection results.
@bwaldvogel
bwaldvogel merged commit 0440ebe into main Nov 16, 2026
3 checks passed
@bwaldvogel
bwaldvogel deleted the cleanup/test-exceptions-and-pattern-switches branch November 16, 2026 07:47
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