Skip to content

Commit 1e0cdd9

Browse files
committed
tests: Move common to separate module to avoid endless test file
... which is no longer basic after having 2000+ lines Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 91e296b commit 1e0cdd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cryptoki/tests/common.rs renamed to cryptoki/tests/common/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ fn get_pkcs11_path() -> String {
1616
.unwrap_or_else(|_| "/usr/local/lib/softhsm/libsofthsm2.so".to_string())
1717
}
1818

19+
#[allow(dead_code)]
1920
pub fn is_softhsm() -> bool {
2021
get_pkcs11_path().contains("softhsm")
2122
}
2223

24+
#[allow(dead_code)]
2325
pub fn is_kryoptic() -> bool {
2426
get_pkcs11_path().contains("kryoptic")
2527
}
@@ -51,6 +53,7 @@ pub fn init_pins() -> (Pkcs11, Slot) {
5153
(pkcs11, slot)
5254
}
5355

56+
#[allow(dead_code)]
5457
pub fn get_firmware_version(pkcs11: &Pkcs11, slot: Slot) -> (u8, u8) {
5558
let info = pkcs11.get_slot_info(slot).unwrap();
5659

0 commit comments

Comments
 (0)