MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_read_or_recover_normal

Function test_read_or_recover_normal

core/src/error.rs:208–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206
207 #[test]
208 fn test_read_or_recover_normal() {
209 let lock = std::sync::RwLock::new(42);
210 let guard = read_or_recover(&lock);
211 assert_eq!(*guard, 42);
212 }
213
214 #[test]
215 fn test_write_or_recover_normal() {

Callers

nothing calls this directly

Calls 1

read_or_recoverFunction · 0.85

Tested by

no test coverage detected