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

Function test_declare_callable_consecutive

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

Source from the content-addressed store, hash-verified

2534
2535 #[test]
2536 fn test_declare_callable_consecutive() {
2537 do_ok_test(
2538 "DECLARE FUNCTION foo$\nDECLARE SUB bar",
2539 &[
2540 Statement::Declare(DeclareSpan {
2541 name: VarRef::new("foo", Some(ExprType::Text)),
2542 name_pos: lc(1, 18),
2543 params: vec![],
2544 }),
2545 Statement::Declare(DeclareSpan {
2546 name: VarRef::new("bar", None),
2547 name_pos: lc(2, 13),
2548 params: vec![],
2549 }),
2550 ],
2551 );
2552 }
2553
2554 #[test]
2555 fn test_declare_callable_multiple_params() {

Callers

nothing calls this directly

Calls 2

lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected