()
| 145 | let ast = Parser::parse(&json!("hello")).unwrap(); |
| 146 | assert!(matches!(ast, AstNode::Literal(v) if v == json!("hello"))); |
| 147 | } |
| 148 | |
| 149 | #[test] |
| 150 | fn parse_symbol() { |
| 151 | let ast = Parser::parse(&json!("$myField")).unwrap(); |
| 152 | assert!(matches!(ast, AstNode::Symbol(s) if s == "$myField")); |
| 153 | } |
| 154 | |
| 155 | #[test] |
| 156 | fn parse_escaped_symbol() { |
| 157 | let ast = Parser::parse(&json!("$$name")).unwrap(); |
| 158 | assert!(matches!(ast, AstNode::Literal(v) if v == json!("$name"))); |
| 159 | } |
nothing calls this directly
no outgoing calls
no test coverage detected