We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df473b commit 265267bCopy full SHA for 265267b
crates/pg_syntax/tests/pg_syntax_tests.rs
@@ -15,6 +15,8 @@ const SNAPSHOTS_PATH: &str = "snapshots/data";
15
#[test]
16
fn valid_statements() {
17
// dont do postgres regress tests for now
18
+ let skipped_tests: Vec<_> = SKIPPED_REGRESS_TESTS.lines().collect();
19
+
20
for path in [VALID_STATEMENTS_PATH] {
21
let mut paths: Vec<_> = fs::read_dir(path).unwrap().map(|r| r.unwrap()).collect();
22
paths.sort_by_key(|dir| dir.path());
@@ -23,11 +25,7 @@ fn valid_statements() {
23
25
let path = f.path();
24
26
let test_name = path.file_stem().unwrap().to_str().unwrap();
27
- if SKIPPED_REGRESS_TESTS
- .lines()
28
- .collect::<Vec<_>>()
29
- .contains(&test_name)
30
- {
+ if skipped_tests.contains(&test_name) {
31
continue;
32
}
33
0 commit comments