chore(all): remove the dependency to lazy_static

This commit is contained in:
Nicolas Sarlin
2024-12-13 16:31:12 +01:00
committed by Nicolas Sarlin
parent 3a99ee9718
commit 381aeb572f
8 changed files with 20 additions and 35 deletions

View File

@@ -213,16 +213,15 @@ fn build_branches(
#[cfg(test)]
mod tests {
use std::sync::LazyLock;
use crate::engine::has_match;
use test_case::test_case;
use crate::ciphertext::{encrypt_str, gen_keys, StringCiphertext};
use lazy_static::lazy_static;
use tfhe::integer::{RadixClientKey, ServerKey};
lazy_static! {
pub static ref KEYS: (RadixClientKey, ServerKey) = gen_keys();
}
pub static KEYS: LazyLock<(RadixClientKey, ServerKey)> = LazyLock::new(|| gen_keys());
#[test_case("ab", "/ab/", 1)]
#[test_case("b", "/ab/", 0)]