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

Function test_sub_one_param

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

Source from the content-addressed store, hash-verified

4872
4873 #[test]
4874 fn test_sub_one_param() {
4875 do_ok_test(
4876 "SUB foo(x)\nEND SUB",
4877 &[Statement::Callable(CallableSpan {
4878 name: VarRef::new("foo", None),
4879 name_pos: lc(1, 5),
4880 params: vec![VarRef::new("x", None)],
4881 body: vec![],
4882 end_pos: lc(2, 1),
4883 })],
4884 );
4885 }
4886
4887 #[test]
4888 fn test_sub_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