Test get_latest_ikm_empty on an empty IKM list
This commit is contained in:
parent
5cd3969b5b
commit
3b91abb1c1
1 changed files with 8 additions and 0 deletions
|
@ -286,6 +286,14 @@ mod tests {
|
||||||
assert_eq!(latest_ikm.id, 3);
|
assert_eq!(latest_ikm.id, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(feature = "encryption")]
|
||||||
|
fn get_latest_ikm_empty() {
|
||||||
|
let mut lst = InputKeyMaterialList::new();
|
||||||
|
let res = lst.get_latest_ikm();
|
||||||
|
assert!(res.is_err());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "encryption")]
|
#[cfg(feature = "encryption")]
|
||||||
fn get_ikm_by_id() {
|
fn get_ikm_by_id() {
|
||||||
|
|
Loading…
Reference in a new issue