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

Function project_happy

nodedb-sql/src/planner/array_fn/tests.rs:122–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120
121#[test]
122fn project_happy() {
123 let p = plan_one("SELECT * FROM ARRAY_PROJECT('g', ['qual', 'variant'])").unwrap();
124 match p {
125 SqlPlan::ArrayProject {
126 name,
127 attr_projection,
128 } => {
129 assert_eq!(name, "g");
130 assert_eq!(attr_projection, vec!["qual".to_string(), "variant".into()]);
131 }
132 other => panic!("expected ArrayProject, got {other:?}"),
133 }
134}
135
136#[test]
137fn project_empty_rejected() {

Callers

nothing calls this directly

Calls 1

plan_oneFunction · 0.85

Tested by

no test coverage detected