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

Function flush_no_op_when_memtable_empty

nodedb/src/engine/array/flush.rs:157–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156 #[test]
157 fn flush_no_op_when_memtable_empty() {
158 let dir = TempDir::new().unwrap();
159 let mut e = ArrayEngine::new(ArrayEngineConfig::new(dir.path().to_path_buf())).unwrap();
160 e.open_array(aid(), schema(), 0x1).unwrap();
161 assert!(e.flush(&aid(), 1).unwrap().is_none());
162 }
163}

Callers

nothing calls this directly

Calls 4

open_arrayMethod · 0.80
aidFunction · 0.70
schemaFunction · 0.70
pathMethod · 0.45

Tested by

no test coverage detected