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

Function test_schema

nodedb-columnar/src/compaction/tests.rs:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12use super::segments::compact_segments;
13
14fn test_schema() -> ColumnarSchema {
15 ColumnarSchema::new(vec![
16 ColumnDef::required("id", ColumnType::Int64).with_primary_key(),
17 ColumnDef::required("name", ColumnType::String),
18 ColumnDef::nullable("score", ColumnType::Float64),
19 ])
20 .expect("valid")
21}
22
23fn write_segment(rows: usize) -> Vec<u8> {
24 let schema = test_schema();

Callers 6

write_segmentFunction · 0.70
compact_all_deletedFunction · 0.70
compact_no_deletesFunction · 0.70
merge_multiple_segmentsFunction · 0.70

Calls 1

expectMethod · 0.45

Tested by

no test coverage detected