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

Function test_parse_del_stmt

parser/src/parser/parser.rs:3523–3536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3521
3522 #[test]
3523 fn test_parse_del_stmt() {
3524 for test_case in &["del a", "del a, b", "del a, b, "] {
3525 let mut parser = Parser::new(test_case);
3526 let program = parser.parse().expect("parsing failed");
3527
3528 insta::with_settings!({
3529 description => test_case.to_string(), // the template source code
3530 snapshot_path => "../../test_data/output/",
3531 omit_expression => true // do not include the default expression
3532 }, {
3533 assert_debug_snapshot!(program);
3534 });
3535 }
3536 }
3537
3538 #[test]
3539 fn parse_yield_statement() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected