This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from AndrewSisley/testLibraryRefactor
Test library refactor
- Loading branch information
Showing
88 changed files
with
6,753 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
cql_storage_types/cql_i16/tests/single_point_read_writes/_1d_database/first_index.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use serial_test::serial; | ||
use crate::constants::DATABASE_LOCATION; | ||
use cql_i16::{ I16 }; | ||
use cql_storage_type_testing_lib::tests::single_point_read_writes::_1d_database::first_index; | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked() { | ||
first_index::unchecked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked() { | ||
first_index::checked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_read() { | ||
first_index::unchecked_write_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_read() { | ||
first_index::checked_write_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} |
40 changes: 40 additions & 0 deletions
40
cql_storage_types/cql_i16/tests/single_point_read_writes/_1d_database/last_index.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use serial_test::serial; | ||
use crate::constants::DATABASE_LOCATION; | ||
use cql_i16::{ I16 }; | ||
use cql_storage_type_testing_lib::tests::single_point_read_writes::_1d_database::last_index; | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked() { | ||
last_index::unchecked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked() { | ||
last_index::checked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_read() { | ||
last_index::unchecked_write_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_read() { | ||
last_index::checked_write_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} |
40 changes: 40 additions & 0 deletions
40
cql_storage_types/cql_i16/tests/single_point_read_writes/_1d_database/midpoint.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
use serial_test::serial; | ||
use crate::constants::DATABASE_LOCATION; | ||
use cql_i16::{ I16 }; | ||
use cql_storage_type_testing_lib::tests::single_point_read_writes::_1d_database::midpoint; | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked() { | ||
midpoint::unchecked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked() { | ||
midpoint::checked::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_read() { | ||
midpoint::unchecked_write_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_read() { | ||
midpoint::checked_write_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42 | ||
); | ||
} |
4 changes: 4 additions & 0 deletions
4
cql_storage_types/cql_i16/tests/single_point_read_writes/_1d_database/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pub mod first_index; | ||
pub mod midpoint; | ||
pub mod last_index; | ||
pub mod with_overwrite; |
84 changes: 84 additions & 0 deletions
84
...e_types/cql_i16/tests/single_point_read_writes/_1d_database/with_overwrite/first_index.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
use serial_test::serial; | ||
use crate::constants::DATABASE_LOCATION; | ||
use cql_i16::{ I16 }; | ||
use cql_storage_type_testing_lib::tests::single_point_read_writes::_1d_database::with_overwrite::first_index; | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked() { | ||
first_index::unchecked::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked() { | ||
first_index::checked::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_unchecked_overwrite_checked_read() { | ||
first_index::unchecked_write_unchecked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_overwrite_checked_read() { | ||
first_index::unchecked_write_checked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_overwrite_checked_read() { | ||
first_index::checked_write_unchecked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_overwrite_unchecked_read() { | ||
first_index::checked_write_unchecked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_overwrite_unchecked_read() { | ||
first_index::unchecked_write_checked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_checked_overwrite_unchecked_read() { | ||
first_index::checked_write_checked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} |
84 changes: 84 additions & 0 deletions
84
...ge_types/cql_i16/tests/single_point_read_writes/_1d_database/with_overwrite/last_index.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
use serial_test::serial; | ||
use crate::constants::DATABASE_LOCATION; | ||
use cql_i16::{ I16 }; | ||
use cql_storage_type_testing_lib::tests::single_point_read_writes::_1d_database::with_overwrite::last_index; | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked() { | ||
last_index::unchecked::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked() { | ||
last_index::checked::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_unchecked_overwrite_checked_read() { | ||
last_index::unchecked_write_unchecked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_overwrite_checked_read() { | ||
last_index::unchecked_write_checked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_overwrite_checked_read() { | ||
last_index::checked_write_unchecked_overwrite_checked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_unchecked_overwrite_unchecked_read() { | ||
last_index::checked_write_unchecked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn unchecked_write_checked_overwrite_unchecked_read() { | ||
last_index::unchecked_write_checked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} | ||
|
||
#[test] | ||
#[serial] | ||
fn checked_write_checked_overwrite_unchecked_read() { | ||
last_index::checked_write_checked_overwrite_unchecked_read::<I16>( | ||
DATABASE_LOCATION, | ||
42, | ||
15 | ||
); | ||
} |
Oops, something went wrong.