Skip to content

test(c): increase test coverage for driver manager - #4972

Merged
lidavidm merged 2 commits into
apache:mainfrom
amoeba:cpp-driver-not-found-tests
Oct 28, 2026
Merged

lidavidm merged 2 commits into
apache:mainfrom
amoeba:cpp-driver-not-found-tests

Conversation

@amoeba

@amoeba amoeba commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Adds some basic test coverage for loading drivers by name/path. I found these gaps while working on #4971.

@amoeba
amoeba marked this pull request as ready for review October 28, 2026 02:03
@amoeba
amoeba requested a review from lidavidm as a code owner October 28, 2026 02:03
@lidavidm
lidavidm merged commit 29d7b51 into apache:main Oct 28, 2026
101 of 102 checks passed
lidavidm pushed a commit that referenced this pull request Nov 4, 2026
…th c++ (#4993)

Updates the Rust driver manager search code to return errors and error
details that match what C++ and C# do.

Each test covers a case and the table below describes what changed at
high level:

| Test | Before | After |
|---|---|---|
| `test_load_from_name_missing_or_invalid_driver` | `Internal` |
`NotFound`, with the path in the error |
| `test_manifest_wrong_arch` | `InvalidArguments` | `NotFound`, with
more detail in the error |
| `test_load_dynamic_missing_driver` | `Internal` | `NotFound`, with the
path in the error |
| `test_empty_driver_name` | `NotFound` | `InvalidArguments`, with a
clear error message |
| `test_load_from_name_invalid_manifest_by_path_or_name` |
`InvalidArguments` by path, `NotFound` by name | `InvalidArguments`
either way, and the error includes the manifest path |
| `test_relative_driver_path_disallowed` | `InvalidArguments` |
`InvalidArguments`, and the error now includes the path |

This PR makes the Rust column in the table on
#4973 match the other columns.

Continuation of:

- #4972
- #4973

This PR was created by driving Opus 5.5 around. I reviewed it with GPT
Sol 6.1 and Opus 5.5 and reviewed the tests myself.
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.

2 participants