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

Function float64_column_basic

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

Source from the content-addressed store, hash-verified

330
331 #[test]
332 fn float64_column_basic() {
333 let mut col = Float64Column::new(10);
334 col.set(3, 0.75);
335 col.set(7, 2.5);
336
337 assert_eq!(col.get(3), Some(0.75));
338 assert_eq!(col.get(7), Some(2.5));
339 assert_eq!(col.get(0), None);
340 assert_eq!(col.get_or(0, 0.0), 0.0);
341 assert_eq!(col.count_present(), 2);
342 }
343
344 #[test]
345 fn int64_column_basic() {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected