mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-02 14:54:23 +01:00
core_tester index fuzz tests with flag
This commit is contained in:
5
.github/workflows/rust.yml
vendored
5
.github/workflows/rust.yml
vendored
@@ -41,6 +41,11 @@ jobs:
|
||||
RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }}
|
||||
run: cargo test --verbose
|
||||
timeout-minutes: 20
|
||||
- name: Tests with indexes
|
||||
env:
|
||||
RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }}
|
||||
run: cargo test --verbose -p core_tester --features index_experimental -- --ignored index_scan
|
||||
timeout-minutes: 20
|
||||
|
||||
|
||||
clippy:
|
||||
|
||||
@@ -14,6 +14,9 @@ path = "lib.rs"
|
||||
name = "integration_tests"
|
||||
path = "integration/mod.rs"
|
||||
|
||||
[features]
|
||||
index_experimental = ["limbo_core/index_experimental"]
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
env_logger = "0.10.1"
|
||||
|
||||
@@ -165,6 +165,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "only used with feature index_experimental"]
|
||||
pub fn index_scan_fuzz() {
|
||||
let db = TempDatabase::new_with_rusqlite("CREATE TABLE t(x PRIMARY KEY)");
|
||||
let sqlite_conn = rusqlite::Connection::open(db.path.clone()).unwrap();
|
||||
@@ -212,6 +213,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "only used with feature index_experimental"]
|
||||
/// A test for verifying that index seek+scan works correctly for compound keys
|
||||
/// on indexes with various column orderings.
|
||||
pub fn index_scan_compound_key_fuzz() {
|
||||
|
||||
Reference in New Issue
Block a user