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

Function test_writer

nodedb-wal/src/mmap_reader.rs:415–421  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

413 use crate::writer::{WalWriter, WalWriterConfig};
414
415 fn test_writer(path: &Path) -> WalWriter {
416 let config = WalWriterConfig {
417 use_direct_io: false, // Tests run without O_DIRECT.
418 ..Default::default()
419 };
420 WalWriter::open(path, config).unwrap()
421 }
422
423 #[test]
424 fn mmap_reader_basic() {

Callers 1

mmap_reader_basicFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected