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

Function delete_happy

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

Source from the content-addressed store, hash-verified

239
240 #[test]
241 fn delete_happy() {
242 let cat = StubCatalog {
243 view: Some(view_2d()),
244 };
245 let ast = DeleteArrayAst {
246 name: "g".into(),
247 coords: vec![vec![
248 ArrayCoordLiteral::Int64(1),
249 ArrayCoordLiteral::Int64(100),
250 ]],
251 };
252 let plans = plan_delete_array(&ast, &cat).unwrap();
253 assert_eq!(plans.len(), 1);
254 assert!(matches!(plans[0], SqlPlan::DeleteArray { .. }));
255 }
256}

Callers

nothing calls this directly

Calls 2

view_2dFunction · 0.85
plan_delete_arrayFunction · 0.85

Tested by

no test coverage detected