()
| 144 | |
| 145 | #[test] |
| 146 | fn auto_flush_triggers_at_threshold() { |
| 147 | let dir = TempDir::new().unwrap(); |
| 148 | let mut cfg = ArrayEngineConfig::new(dir.path().to_path_buf()); |
| 149 | cfg.flush_cell_threshold = 2; |
| 150 | let mut e = ArrayEngine::new(cfg).unwrap(); |
| 151 | e.open_array(aid(), schema(), 0x1).unwrap(); |
| 152 | for i in 0..2 { |
| 153 | put_one(&mut e, i, i, i, (i as u64) + 1); |
| 154 | } |
| 155 | assert!(!e.store(&aid()).unwrap().manifest().segments.is_empty()); |
| 156 | } |
| 157 | |
| 158 | #[test] |
| 159 | fn put_cells_stamps_memtable_with_supplied_lsn() { |
nothing calls this directly
no test coverage detected