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

Function insert_arity_mismatch_rejected

nodedb-sql/src/planner/array_dml.rs:209–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207
208 #[test]
209 fn insert_arity_mismatch_rejected() {
210 let cat = StubCatalog {
211 view: Some(view_2d()),
212 };
213 let ast = InsertArrayAst {
214 name: "g".into(),
215 rows: vec![crate::types_array::ArrayInsertRow {
216 coords: vec![ArrayCoordLiteral::Int64(1)],
217 attrs: vec![ArrayAttrLiteral::Float64(1.0)],
218 }],
219 };
220 assert!(plan_insert_array(&ast, &cat).is_err());
221 }
222
223 #[test]
224 fn insert_happy() {

Callers

nothing calls this directly

Calls 1

view_2dFunction · 0.85

Tested by

no test coverage detected