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

Function test_function_one_param

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

Source from the content-addressed store, hash-verified

4362
4363 #[test]
4364 fn test_function_one_param() {
4365 do_ok_test(
4366 "FUNCTION foo$(x)\nEND FUNCTION",
4367 &[Statement::Callable(CallableSpan {
4368 name: VarRef::new("foo", Some(ExprType::Text)),
4369 name_pos: lc(1, 10),
4370 params: vec![VarRef::new("x", None)],
4371 body: vec![],
4372 end_pos: lc(2, 1),
4373 })],
4374 );
4375 }
4376
4377 #[test]
4378 fn test_function_multiple_params() {

Callers

nothing calls this directly

Calls 3

CallableInterface · 0.85
lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected