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

Function encode_value_count_mismatch

nodedb-strict/src/encode.rs:441–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439
440 #[test]
441 fn encode_value_count_mismatch() {
442 let schema = crm_schema();
443 let encoder = TupleEncoder::new(&schema);
444
445 let err = encoder.encode(&[Value::Integer(1)]).unwrap_err();
446 assert!(matches!(err, StrictError::ValueCountMismatch { .. }));
447 }
448
449 #[test]
450 fn encode_int_to_float_coercion() {

Callers

nothing calls this directly

Calls 2

crm_schemaFunction · 0.70
encodeMethod · 0.45

Tested by

no test coverage detected