Commit b0d7a24 committed Dec 15, 2024 · 1 / 1
1 parent cf0527c commit b0d7a24 Copy full SHA for b0d7a24
File tree 1 file changed +2
-3
lines changed
tests/codeschool-sqlite-parser-test-files
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
use std:: { fs, path:: Path } ;
2
2
mod sqlite_parser;
3
3
4
- use db_academy_sql_parser:: Parser ;
5
- use sqlite_parser:: parse_sql_file;
6
-
7
4
#[ test]
8
5
fn run_codeschool_sqlite_parser_test ( ) {
9
6
let test_set_path = Path :: new ( "tests/codeschool-sqlite-parser-test-files/sql" ) ;
@@ -44,13 +41,15 @@ fn run_codeschool_sqlite_parser_test() {
44
41
}
45
42
46
43
fn run_test ( sql_content : & str ) -> bool {
44
+ use db_academy_sql_parser:: Parser ;
47
45
let mut parser = Parser :: from ( sql_content) ;
48
46
let statement = parser. parse_statement ( ) ;
49
47
statement. is_ok ( )
50
48
}
51
49
52
50
#[ test]
53
51
fn run_codeschool_sqlite_parser_with_sqlite3_parser ( ) {
52
+ use sqlite_parser:: parse_sql_file;
54
53
let test_set_path = Path :: new ( "tests/codeschool-sqlite-parser-test-files/sql" ) ;
55
54
56
55
let mut total_tests = 0 ;
You can’t perform that action at this time.
0 commit comments