Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

style: rustfmt integration tests

xerj-orgfcd37c781049
diff --git a/engine/crates/xerj-engine/tests/integration.rs b/engine/crates/xerj-engine/tests/integration.rs
index 4ba2f4d4e..bb8f46b1c 100644
--- a/engine/crates/xerj-engine/tests/integration.rs
+++ b/engine/crates/xerj-engine/tests/integration.rs
@@ -5838,7 +5838,9 @@ async fn test_term_matches_non_first_array_element() {
.unwrap();
let r = idx
- .search(&make_search(json!({"term": {"calls": "wp_safe_remote_get"}})))
+ .search(&make_search(
+ json!({"term": {"calls": "wp_safe_remote_get"}}),
+ ))
.await
.unwrap();
assert_eq!(
@@ -5854,8 +5856,13 @@ async fn test_term_matches_non_first_array_element() {
assert_eq!(r0.total.value, 1, "first element must still match");
let rt = idx
- .search(&make_search(json!({"terms": {"calls": ["wp_safe_remote_get"]}})))
+ .search(&make_search(
+ json!({"terms": {"calls": ["wp_safe_remote_get"]}}),
+ ))
.await
.unwrap();
- assert_eq!(rt.total.value, 1, "terms must match a NON-FIRST array element");
+ assert_eq!(
+ rt.total.value, 1,
+ "terms must match a NON-FIRST array element"
+ );
}