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

Function test_parse_break_continue

parser/src/parser/parser.rs:3571–3584  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3569
3570 #[test]
3571 fn test_parse_break_continue() {
3572 for test_case in &["break", "continue"] {
3573 let mut parser = Parser::new(test_case);
3574 let program = parser.parse().expect("parsing failed");
3575
3576 insta::with_settings!({
3577 description => test_case.to_string(), // the template source code
3578 snapshot_path => "../../test_data/output/",
3579 omit_expression => true // do not include the default expression
3580 }, {
3581 assert_debug_snapshot!(program);
3582 });
3583 }
3584 }
3585
3586 #[test]
3587 fn test_parse_bool_op() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected