()
| 4333 | |
| 4334 | #[test] |
| 4335 | fn test_function_some_content() { |
| 4336 | do_ok_test( |
| 4337 | r#" |
| 4338 | FUNCTION foo$ |
| 4339 | A |
| 4340 | END |
| 4341 | END 8 |
| 4342 | B |
| 4343 | END FUNCTION |
| 4344 | "#, |
| 4345 | &[Statement::Callable(CallableSpan { |
| 4346 | name: VarRef::new("foo", Some(ExprType::Text)), |
| 4347 | name_pos: lc(2, 26), |
| 4348 | params: vec![], |
| 4349 | body: vec![ |
| 4350 | make_bare_builtin_call("A", 3, 21), |
| 4351 | Statement::End(EndSpan { code: None, pos: lc(4, 21) }), |
| 4352 | Statement::End(EndSpan { |
| 4353 | code: Some(Expr::Integer(IntegerSpan { value: 8, pos: lc(5, 25) })), |
| 4354 | pos: lc(5, 21), |
| 4355 | }), |
| 4356 | make_bare_builtin_call("B", 6, 21), |
| 4357 | ], |
| 4358 | end_pos: lc(7, 17), |
| 4359 | })], |
| 4360 | ); |
| 4361 | } |
| 4362 | |
| 4363 | #[test] |
| 4364 | fn test_function_one_param() { |
nothing calls this directly
no test coverage detected