fix(tests): add missing prefix field to Request::Query call sites

ad4e538 fixed the chroot link error, surfacing the next failure:
`cargo test --features full` in check() couldn't compile integration
tests because Request::Query gained an optional `prefix` field in
3.4.5 (commit bfbce42) and I missed three constructors under
crates/owlry/tests/. Unit tests under src/ were already updated.

Locally these tests compiled before because `cargo build --features
full` doesn't run them — only `cargo test` does, and I'd been running
`--lib` only. The chroot's PKGBUILD `check()` runs the full suite.

352 lib + 27 integration tests now green with --features full.
This commit is contained in:
2026-05-13 13:33:25 +02:00
parent ad4e538a7a
commit 30713f065f
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -5,6 +5,7 @@ fn test_query_request_roundtrip() {
let req = Request::Query {
text: "fire".into(),
modes: Some(vec!["app".into(), "cmd".into()]),
prefix: None,
};
let json = serde_json::to_string(&req).unwrap();
let parsed: Request = serde_json::from_str(&json).unwrap();
@@ -16,6 +17,7 @@ fn test_query_request_without_modes() {
let req = Request::Query {
text: "fire".into(),
modes: None,
prefix: None,
};
let json = serde_json::to_string(&req).unwrap();
assert!(!json.contains("modes"));
+1
View File
@@ -92,6 +92,7 @@ fn test_server_handles_query_request() {
let req = Request::Query {
text: "nonexistent_query_xyz".into(),
modes: None,
prefix: None,
};
let resp = roundtrip(&mut stream, &req);