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

Function test_sub_some_content

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

Source from the content-addressed store, hash-verified

4843
4844 #[test]
4845 fn test_sub_some_content() {
4846 do_ok_test(
4847 r#"
4848 SUB foo
4849 A
4850 END
4851 END 8
4852 B
4853 END SUB
4854 "#,
4855 &[Statement::Callable(CallableSpan {
4856 name: VarRef::new("foo", None),
4857 name_pos: lc(2, 21),
4858 params: vec![],
4859 body: vec![
4860 make_bare_builtin_call("A", 3, 21),
4861 Statement::End(EndSpan { code: None, pos: lc(4, 21) }),
4862 Statement::End(EndSpan {
4863 code: Some(Expr::Integer(IntegerSpan { value: 8, pos: lc(5, 25) })),
4864 pos: lc(5, 21),
4865 }),
4866 make_bare_builtin_call("B", 6, 21),
4867 ],
4868 end_pos: lc(7, 17),
4869 })],
4870 );
4871 }
4872
4873 #[test]
4874 fn test_sub_one_param() {

Callers

nothing calls this directly

Calls 3

CallableInterface · 0.85
lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected