()
| 3351 | |
| 3352 | #[test] |
| 3353 | fn test_expr_functions_variadic() { |
| 3354 | use Expr::*; |
| 3355 | do_expr_ok_test( |
| 3356 | "zero()", |
| 3357 | Call(CallSpan { vref: VarRef::new("zero", None), vref_pos: lc(1, 7), args: vec![] }), |
| 3358 | ); |
| 3359 | do_expr_ok_test( |
| 3360 | "one%(1)", |
| 3361 | Call(CallSpan { |
| 3362 | vref: VarRef::new("one", Some(ExprType::Integer)), |
| 3363 | vref_pos: lc(1, 7), |
| 3364 | args: vec![ArgSpan { |
| 3365 | expr: Some(expr_integer(1, 1, 12)), |
| 3366 | sep: ArgSep::End, |
| 3367 | sep_pos: lc(1, 13), |
| 3368 | }], |
| 3369 | }), |
| 3370 | ); |
| 3371 | do_expr_ok_test( |
| 3372 | "many$(3, \"x\", TRUE)", |
| 3373 | Call(CallSpan { |
| 3374 | vref: VarRef::new("many", Some(ExprType::Text)), |
| 3375 | vref_pos: lc(1, 7), |
| 3376 | args: vec![ |
| 3377 | ArgSpan { |
| 3378 | expr: Some(expr_integer(3, 1, 13)), |
| 3379 | sep: ArgSep::Long, |
| 3380 | sep_pos: lc(1, 14), |
| 3381 | }, |
| 3382 | ArgSpan { |
| 3383 | expr: Some(expr_text("x", 1, 16)), |
| 3384 | sep: ArgSep::Long, |
| 3385 | sep_pos: lc(1, 19), |
| 3386 | }, |
| 3387 | ArgSpan { |
| 3388 | expr: Some(expr_boolean(true, 1, 21)), |
| 3389 | sep: ArgSep::End, |
| 3390 | sep_pos: lc(1, 25), |
| 3391 | }, |
| 3392 | ], |
| 3393 | }), |
| 3394 | ); |
| 3395 | } |
| 3396 | |
| 3397 | #[test] |
| 3398 | fn test_expr_functions_nested() { |
nothing calls this directly
no test coverage detected