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

Function test_attribute_ref

parser/src/parser/parser.rs:3714–3727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3712
3713 #[test]
3714 fn test_attribute_ref() {
3715 for test_case in &["a.b", "a.b.c", "a.b_c", "a.b.c.d"] {
3716 let mut parser = Parser::new(test_case);
3717 let program = parser.parse().expect("parsing failed");
3718
3719 insta::with_settings!({
3720 description => test_case.to_string(), // the template source code
3721 snapshot_path => "../../test_data/output/",
3722 omit_expression => true // do not include the default expression
3723 }, {
3724 assert_debug_snapshot!(program);
3725 });
3726 }
3727 }
3728
3729 #[test]
3730 fn parse_call() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.80
parseMethod · 0.80

Tested by

no test coverage detected