Skip to content

Commit

Permalink
chore: fix typo query_sqllite to query_sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
xudong963 committed Jan 20, 2023
1 parent 4047843 commit a09d6ef
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions dozer-tests/src/sql_tests/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ impl TestFramework {
.run()
.map_err(|e| FrameworkError::InternalError(Box::new(e)))?;

let source_result = query_sqllite(self.source.clone(), &final_sql, &output_schema)
let source_result = query_sqlite(self.source.clone(), &final_sql, &output_schema)
.map_err(|e| FrameworkError::InternalError(Box::new(e)))?;

let dest_result =
query_sqllite(self.dest.clone(), "select * from results;", &output_schema)
.map_err(|e| FrameworkError::InternalError(Box::new(e)))?;
let dest_result = query_sqlite(self.dest.clone(), "select * from results;", &output_schema)
.map_err(|e| FrameworkError::InternalError(Box::new(e)))?;

Ok(source_result == dest_result)
}
Expand Down
2 changes: 1 addition & 1 deletion dozer-tests/src/sql_tests/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ pub fn get_inserts_from_csv(
Ok(sql_list)
}

pub fn query_sqllite(
pub fn query_sqlite(
mapper: Arc<Mutex<SqlMapper>>,
sql: &str,
schema: &Schema,
Expand Down
2 changes: 1 addition & 1 deletion dozer-tests/src/sql_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ mod helper;
mod mapper;
mod pipeline;
pub use framework::TestFramework;
pub use helper::{get_inserts_from_csv, query_sqllite};
pub use helper::{get_inserts_from_csv, query_sqlite};
pub use mapper::SqlMapper;
6 changes: 3 additions & 3 deletions dozer-tests/src/tests/mapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::sync::{Arc, Mutex};

use dozer_types::types::{Field, FieldDefinition, Operation, Record, Schema, SchemaIdentifier};

use crate::sql_tests::{query_sqllite, SqlMapper};
use crate::sql_tests::{query_sqlite, SqlMapper};

#[test]
fn test_framework_to_dozer_types() {
Expand Down Expand Up @@ -169,7 +169,7 @@ fn test_null_inserts() {

let mutex_mapper = Arc::new(Mutex::new(mapper));
assert_eq!(
query_sqllite(
query_sqlite(
mutex_mapper.clone(),
"select actor_id from actor;",
&Schema {
Expand All @@ -192,7 +192,7 @@ fn test_null_inserts() {
);

assert_eq!(
query_sqllite(
query_sqlite(
mutex_mapper,
"select * from actor;",
&Schema {
Expand Down

0 comments on commit a09d6ef

Please sign in to comment.