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

Function int64_column_basic

nodedb/src/engine/graph/olap/columns.rs:345–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343
344 #[test]
345 fn int64_column_basic() {
346 let mut col = Int64Column::new(5);
347 col.set(0, 42);
348 col.set(4, -1);
349
350 assert_eq!(col.get(0), Some(42));
351 assert_eq!(col.get(4), Some(-1));
352 assert_eq!(col.get(2), None);
353 assert_eq!(col.count_present(), 2);
354 }
355
356 #[test]
357 fn string_column_dictionary_encoding() {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected