Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrezot committed Feb 27, 2024
1 parent 63e06a7 commit 6a36f83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ cosmian_crypto_core = { git = "https://github.com/Cosmian/crypto_core.git", bran
"aes",
"sha3",
] }

# Once available in stable Rust, use `!` std primitive
# <https://doc.rust-lang.org/std/primitive.never.html>
never = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions src/findex/implem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ mod tests {
}

#[test]
fn test_rebuild() {
fn rebuild() {
let mut rng = CsRng::from_entropy();
let seed = Secret::<32>::random(&mut rng);
let db = (InMemoryDb::default(), InMemoryDb::default());
Expand Down Expand Up @@ -667,7 +667,7 @@ mod tests {
}

#[test]
fn test_compact() {
fn compact() {
let mut rng = CsRng::from_entropy();
let seed = Secret::<32>::random(&mut rng);
let db = (InMemoryDb::default(), InMemoryDb::default());
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ pub use index::{Index, IndexError, UserKey};
pub use traits::*;
pub use vera::{Error as VeraError, Tag, Vera};

/// Minimal seed length preserving 128 bits of post-quantum security.
/// Minimal seed length ensuring enough of post-quantum security bits.
pub const MIN_SEED_LENGTH: usize = 32;

impl_byte_vector!(Keyword, "Keyword");
impl_byte_vector!(Data, "Data");

#[cfg(test)]
#[cfg(all(feature = "in_memory", test))]
mod example {
use cosmian_crypto_core::{reexport::rand_core::SeedableRng, CsRng};

Expand Down

0 comments on commit 6a36f83

Please sign in to comment.