Skip to content

Commit

Permalink
Merge pull request #69 from Cosmian/fix/add_non_regression_tests
Browse files Browse the repository at this point in the history
feat: add non-regression test
  • Loading branch information
tbrezot committed Aug 1, 2023
2 parents bd0aea6 + 88dc412 commit 24425b3
Show file tree
Hide file tree
Showing 13 changed files with 421 additions and 1,046 deletions.
27 changes: 22 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ repository = "https://github.com/Cosmian/findex/"
description = "Symmetric Searchable Encryption"

[lib]
crate-type = ["cdylib", "rlib", "staticlib"]
crate-type = ["cdylib", "lib", "staticlib"]
name = "cosmian_findex"
path = "src/lib.rs"

[[bench]]
harness = false
name = "benches"

[features]
in_memory = []
live_compact = []
Expand All @@ -40,3 +36,24 @@ actix-rt = "2.8"
criterion = { version = "0.4", features = ["html_reports", "async_futures"], default_features = false }
futures = "0.3"
serde_json = "1.0"

[[bench]]
harness = false
name = "benches"
required-features = ["in_memory"]

[[test]]
name = "test_in_memory"
required-features = ["in_memory"]

[[test]]
name = "non_regression"
required-features = ["in_memory"]

[[example]]
name = "search"
required-features = ["in_memory"]

[[example]]
name = "upsert"
required-features = ["in_memory"]
3 changes: 0 additions & 3 deletions benches/benches.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#[cfg(not(feature = "in_memory"))]
compile_error!("Benches require the `in_memory` feature.");

use std::collections::{HashMap, HashSet};

use cosmian_crypto_core::CsRng;
Expand Down
Loading

0 comments on commit 24425b3

Please sign in to comment.