(inputs: &[&str])
| 37 | Ok(ast) |
| 38 | } |
| 39 | pub fn python_parser_test_ast(inputs: &[&str]) { |
| 40 | for test_input in inputs.iter() { |
| 41 | let enderpy_ast = parse_enderpy_source(test_input).unwrap(); |
| 42 | let python_ast = parse_python_source(test_input).unwrap(); |
| 43 | assert_ast_eq(&python_ast, &enderpy_ast, test_input); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | fn assert_ast_eq(python_ast: &Value, enderpy_ast: &Value, source: &str) { |
| 48 | let include_source = std::env::var("INCLUDE_SOURCE").is_ok(); |
nothing calls this directly
no test coverage detected