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

Function max_gsi_limit

nodedb/src/engine/sparse/gsi.rs:361–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359
360 #[test]
361 fn max_gsi_limit() {
362 let (store, _dir) = open_store();
363 for i in 0..DEFAULT_MAX_GSIS_PER_COLLECTION {
364 store
365 .create_index(1, "t", &format!("idx{i}"), &format!("f{i}"), vec![])
366 .unwrap();
367 }
368 // One over the limit should fail.
369 let result = store.create_index(1, "t", "idx_extra", "f_extra", vec![]);
370 assert!(result.is_err());
371 }
372
373 #[test]
374 fn covering_index_check() {

Callers

nothing calls this directly

Calls 2

create_indexMethod · 0.80
open_storeFunction · 0.70

Tested by

no test coverage detected