Add assert to Store::get() the new ID
This commit is contained in:
parent
f16c09a981
commit
1244a6666f
1 changed files with 5 additions and 0 deletions
|
@ -2404,6 +2404,11 @@ mod store_tests {
|
|||
let id_mv_with_base = id_mv.clone().with_base(store.path().clone());
|
||||
assert!(store.entries.read().unwrap().get(&id_mv_with_base).is_some());
|
||||
}
|
||||
|
||||
assert!(match store.get(id.clone()) { Ok(None) => true, _ => false },
|
||||
"Moved id ({:?}) is still there", id);
|
||||
assert!(match store.get(id_mv.clone()) { Ok(Some(_)) => true, _ => false },
|
||||
"New id ({:?}) is not in store...", id_mv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue