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