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

Function python_parser_test_ast

compat/src/parser_compat.rs:39–45  ·  view source on GitHub ↗
(inputs: &[&str])

Source from the content-addressed store, hash-verified

37 Ok(ast)
38}
39pub 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
47fn assert_ast_eq(python_ast: &Value, enderpy_ast: &Value, source: &str) {
48 let include_source = std::env::var("INCLUDE_SOURCE").is_ok();

Callers

nothing calls this directly

Calls 4

parse_enderpy_sourceFunction · 0.85
parse_python_sourceFunction · 0.85
assert_ast_eqFunction · 0.85
iterMethod · 0.80

Tested by

no test coverage detected