MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_function_multiple_params

Function test_function_multiple_params

core/src/parser.rs:4378–4393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4376
4377 #[test]
4378 fn test_function_multiple_params() {
4379 do_ok_test(
4380 "FUNCTION foo$(x$, y, z AS BOOLEAN)\nEND FUNCTION",
4381 &[Statement::Callable(CallableSpan {
4382 name: VarRef::new("foo", Some(ExprType::Text)),
4383 name_pos: lc(1, 10),
4384 params: vec![
4385 VarRef::new("x", Some(ExprType::Text)),
4386 VarRef::new("y", None),
4387 VarRef::new("z", Some(ExprType::Boolean)),
4388 ],
4389 body: vec![],
4390 end_pos: lc(2, 1),
4391 })],
4392 );
4393 }
4394
4395 #[test]
4396 fn test_function_errors() {

Callers

nothing calls this directly

Calls 3

CallableInterface · 0.85
lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected