MCPcopy Create free account
hub / github.com/Glyphack/enderpy / test_raise_statement

Function test_raise_statement

parser/src/parser/parser.rs:3555–3568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3553
3554 #[test]
3555 fn test_raise_statement() {
3556 for test_case in &["raise", "raise a", "raise a from c"] {
3557 let mut parser = Parser::new(test_case);
3558 let program = parser.parse().expect("parsing failed");
3559
3560 insta::with_settings!({
3561 description => test_case.to_string(), // the template source code
3562 snapshot_path => "../../test_data/output/",
3563 omit_expression => true // do not include the default expression
3564 }, {
3565 assert_debug_snapshot!(program);
3566 });
3567 }
3568 }
3569
3570 #[test]
3571 fn test_parse_break_continue() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected