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

Function schema_version_read

nodedb-strict/src/decode.rs:641–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639
640 #[test]
641 fn schema_version_read() {
642 let schema = crm_schema();
643 let decoder = TupleDecoder::new(&schema);
644 let tuple = encode_crm_row(&[
645 Value::Integer(1),
646 Value::String("x".into()),
647 Value::Null,
648 Value::Decimal(rust_decimal::Decimal::ZERO),
649 Value::Null,
650 ]);
651
652 assert_eq!(decoder.schema_version(&tuple).unwrap(), 1);
653 }
654
655 #[test]
656 fn schema_version_u32_no_truncation() {

Callers

nothing calls this directly

Calls 2

encode_crm_rowFunction · 0.85
crm_schemaFunction · 0.70

Tested by

no test coverage detected