Add test to get non-existent entries
This commit is contained in:
parent
0cdeeb4c55
commit
52b2a4589d
1 changed files with 11 additions and 0 deletions
|
@ -2273,5 +2273,16 @@ mod store_tests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_get_none() {
|
||||||
|
let store = get_store();
|
||||||
|
|
||||||
|
for n in 1..100 {
|
||||||
|
match store.get(PathBuf::from(format!("test-{}", n))) {
|
||||||
|
Ok(None) => assert!(true),
|
||||||
|
_ => assert!(false),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue