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