MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_parser

Function test_parser

src/sql-pretty/tests/parser.rs:23–38  ·  view source on GitHub ↗

unsupported operation: can't call foreign function `rust_psm_stack_pointer` on OS `linux`

()

Source from the content-addressed store, hash-verified

21#[mz_ore::test]
22#[cfg_attr(miri, ignore)] // unsupported operation: can't call foreign function `rust_psm_stack_pointer` on OS `linux`
23fn test_parser() {
24 walk("../sql-parser/tests/testdata", |f| {
25 f.run(|tc| -> String {
26 match tc.directive.as_str() {
27 "parse-statement" => {
28 verify_pretty_statement(&tc.input);
29 }
30 "parse-scalar" => {
31 verify_pretty_expr(&tc.input);
32 }
33 _ => {}
34 }
35 datadriven_testcase(tc)
36 })
37 });
38}
39
40fn verify_pretty_expr(expr: &str) {
41 let Ok(original) = parse_expr(expr) else {

Callers

nothing calls this directly

Calls 6

verify_pretty_statementFunction · 0.85
verify_pretty_exprFunction · 0.85
datadriven_testcaseFunction · 0.85
walkFunction · 0.50
runMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected