()
| 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 | } |
nothing calls this directly
no test coverage detected