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

Function test_schema

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

Source from the content-addressed store, hash-verified

12use super::engine::MutationEngine;
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
23#[test]
24fn insert_and_pk_check() {

Calls 1

expectMethod · 0.45

Tested by

no test coverage detected