MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_unhashed_none

Function test_unhashed_none

atomic-repository/src/redb_change_store/tests.rs:211–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209
210#[test]
211fn test_unhashed_none() {
212 let (_dir, store) = temp_store();
213 let change = make_test_change("no unhashed", b"data");
214
215 let hash = store.save_change(&change).unwrap();
216 let unhashed = store.load_unhashed(&hash).unwrap();
217 assert!(unhashed.is_none());
218}
219
220#[test]
221fn test_unhashed_present() {

Callers

nothing calls this directly

Calls 5

temp_storeFunction · 0.85
make_test_changeFunction · 0.85
load_unhashedMethod · 0.80
unwrapMethod · 0.45
save_changeMethod · 0.45

Tested by

no test coverage detected