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

Function test_declare_callable_no_args_eof

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

Source from the content-addressed store, hash-verified

2492
2493 #[test]
2494 fn test_declare_callable_no_args_eof() {
2495 do_ok_test(
2496 "DECLARE FUNCTION foo$",
2497 &[Statement::Declare(DeclareSpan {
2498 name: VarRef::new("foo", Some(ExprType::Text)),
2499 name_pos: lc(1, 18),
2500 params: vec![],
2501 })],
2502 );
2503
2504 do_ok_test(
2505 "DECLARE SUB foo",
2506 &[Statement::Declare(DeclareSpan {
2507 name: VarRef::new("foo", None),
2508 name_pos: lc(1, 13),
2509 params: vec![],
2510 })],
2511 );
2512 }
2513
2514 #[test]
2515 fn test_declare_callable_no_args_not_eof() {

Callers

nothing calls this directly

Calls 2

lcFunction · 0.85
do_ok_testFunction · 0.70

Tested by

no test coverage detected