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

Function put_buckets_into_tile

nodedb/src/engine/array/memtable/tile_buffer.rs:403–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401
402 #[test]
403 fn put_buckets_into_tile() {
404 let s = schema();
405 let mut m = Memtable::new();
406 m.put_cell(&s, put(coord(1, 2), attrs(10), 0, 0, OPEN_UPPER, 1))
407 .unwrap();
408 m.put_cell(&s, put(coord(2, 3), attrs(20), 0, 0, OPEN_UPPER, 2))
409 .unwrap();
410 let stats = m.stats();
411 assert_eq!(stats.cell_count, 2);
412 assert_eq!(stats.tile_count, 1);
413 assert_eq!(stats.max_lsn, 2);
414 }
415
416 #[test]
417 fn get_cell_bytes_returns_stored_bytes() {

Callers

nothing calls this directly

Calls 6

attrsFunction · 0.85
put_cellMethod · 0.80
schemaFunction · 0.70
putFunction · 0.70
coordFunction · 0.70
statsMethod · 0.45

Tested by

no test coverage detected