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

Function insert_happy

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

Source from the content-addressed store, hash-verified

222
223 #[test]
224 fn insert_happy() {
225 let cat = StubCatalog {
226 view: Some(view_2d()),
227 };
228 let ast = InsertArrayAst {
229 name: "g".into(),
230 rows: vec![crate::types_array::ArrayInsertRow {
231 coords: vec![ArrayCoordLiteral::Int64(1), ArrayCoordLiteral::Int64(100)],
232 attrs: vec![ArrayAttrLiteral::Float64(99.5)],
233 }],
234 };
235 let plans = plan_insert_array(&ast, &cat).unwrap();
236 assert_eq!(plans.len(), 1);
237 assert!(matches!(plans[0], SqlPlan::InsertArray { .. }));
238 }
239
240 #[test]
241 fn delete_happy() {

Callers

nothing calls this directly

Calls 2

view_2dFunction · 0.85
plan_insert_arrayFunction · 0.85

Tested by

no test coverage detected