MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / empty_query

Function empty_query

nodedb/src/engine/sparse/inverted/tests.rs:101–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100#[test]
101fn empty_query() {
102 let (idx, _dir) = open_temp();
103 idx.index_document(T, "docs", Surrogate::new(1), "some text here")
104 .unwrap();
105
106 let results = idx.search(T, "docs", "the a is", 10, false, None).unwrap();
107 assert!(results.is_empty());
108}
109
110#[test]
111fn collections_isolated() {

Callers

nothing calls this directly

Calls 3

open_tempFunction · 0.70
index_documentMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected