Skip to content

Commit b0d7a24

Browse files
committedDec 15, 2024·
sql-parser: minor refactoring on intg-test
1 parent cf0527c commit b0d7a24

File tree

1 file changed

+2
-3
lines changed
  • tests/codeschool-sqlite-parser-test-files

1 file changed

+2
-3
lines changed
 

‎tests/codeschool-sqlite-parser-test-files/main.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
use std::{fs, path::Path};
22
mod sqlite_parser;
33

4-
use db_academy_sql_parser::Parser;
5-
use sqlite_parser::parse_sql_file;
6-
74
#[test]
85
fn run_codeschool_sqlite_parser_test() {
96
let test_set_path = Path::new("tests/codeschool-sqlite-parser-test-files/sql");
@@ -44,13 +41,15 @@ fn run_codeschool_sqlite_parser_test() {
4441
}
4542

4643
fn run_test(sql_content: &str) -> bool {
44+
use db_academy_sql_parser::Parser;
4745
let mut parser = Parser::from(sql_content);
4846
let statement = parser.parse_statement();
4947
statement.is_ok()
5048
}
5149

5250
#[test]
5351
fn run_codeschool_sqlite_parser_with_sqlite3_parser() {
52+
use sqlite_parser::parse_sql_file;
5453
let test_set_path = Path::new("tests/codeschool-sqlite-parser-test-files/sql");
5554

5655
let mut total_tests = 0;

0 commit comments

Comments
 (0)
Please sign in to comment.