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

Method hydrate

atomic-repository/tests/it/remote_cache_parity_test.rs:82–88  ·  view source on GitHub ↗

Hydrate canonical graph data without changing the working files.

(&self, view: &str, live: &BTreeMap<u64, String>)

Source from the content-addressed store, hash-verified

80
81 /// Hydrate canonical graph data without changing the working files.
82 fn hydrate(&self, view: &str, live: &BTreeMap<u64, String>) {
83 hydrate_cache(&self.host, &self.cache, view);
84 for (&inode, path) in live.iter().filter(|(inode, _)| **inode != 0) {
85 let claim = self.cache.resolve_single_path_claim(view, path).unwrap();
86 assert_eq!(claim.map(|(_, inode, _)| inode.get()), Some(inode));
87 }
88 }
89}
90
91/// Dependencies discovered while importing changes are fetched before the

Callers 2

assert_parityFunction · 0.80
record_in_cacheFunction · 0.80

Calls 4

hydrate_cacheFunction · 0.85
iterMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected