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(api): format systemone_api and decide_flywheel tests

Christian M. Todie0d11c8ff5ade
diff --git a/engine/crates/xerj-api/src/systemone_api.rs b/engine/crates/xerj-api/src/systemone_api.rs
index d35d42c5e..160122afe 100644
--- a/engine/crates/xerj-api/src/systemone_api.rs
+++ b/engine/crates/xerj-api/src/systemone_api.rs
@@ -2161,10 +2161,9 @@ mod tests {
)
.expect("toml");
assert_eq!(cfg.decisions.escalate_below, 0.65);
- let disabled = xerj_common::config::Config::from_toml_str(
- "[decisions]\nescalate_below = 0.0\n",
- )
- .expect("0.0 disables confidence escalation");
+ let disabled =
+ xerj_common::config::Config::from_toml_str("[decisions]\nescalate_below = 0.0\n")
+ .expect("0.0 disables confidence escalation");
assert_eq!(disabled.decisions.escalate_below, 0.0);
for bad in ["-0.1", "1.1", "nan"] {
let err = xerj_common::config::Config::from_toml_str(&format!(
diff --git a/engine/crates/xerj-api/tests/decide_flywheel.rs b/engine/crates/xerj-api/tests/decide_flywheel.rs
index 1b6181b5c..421d330fa 100644
--- a/engine/crates/xerj-api/tests/decide_flywheel.rs
+++ b/engine/crates/xerj-api/tests/decide_flywheel.rs
@@ -560,7 +560,11 @@ mod write_back {
);
assert_eq!(r["source"], "local", "{r}");
let docs = node.wait_for_docs("history", 3).await;
- assert_eq!(docs.len(), 3, "local escalation wrote back to history: {docs:?}");
+ assert_eq!(
+ docs.len(),
+ 3,
+ "local escalation wrote back to history: {docs:?}"
+ );
// 2. `/v1/systemone` on another split index also escalates and writes back.
let ln2 = local_node("history_s1", 0.0).await;
@@ -602,4 +606,3 @@ mod write_back {
);
}
}
-