Skip to content

Commit 973bd8e

Browse files
authored
Merge pull request #1 from Kakapio/restructure
restructure tests dir
2 parents 510fc63 + 652c575 commit 973bd8e

File tree

7 files changed

+744
-290
lines changed

7 files changed

+744
-290
lines changed

src/backend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub fn execute_command(cmd: &str) -> MetaCommandResult {
7575
}
7676
}
7777

78-
fn execute_statement(statement: Statement, tb: &mut Table) -> ExecuteResult {
78+
pub fn execute_statement(statement: Statement, tb: &mut Table) -> ExecuteResult {
7979
match statement.cmd {
8080
StatementType::Insert => {
8181
println!("Performing an insert...");

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub mod backend;
2+
pub mod parser;

src/main.rs

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ use crate::backend::*;
66
*/
77
mod backend;
88
mod parser;
9-
mod tests {
10-
mod unit_tests;
11-
}
129

1310
fn main() {
1411
entrypoint();

src/tests/unit_tests.rs

-286
This file was deleted.

0 commit comments

Comments
 (0)