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

Function map

libatomic/src/review/view_comparison.rs:419–424  ·  view source on GitHub ↗
(entries: &[(&str, &str)])

Source from the content-addressed store, hash-verified

417 use atomic_repository::{record::RecordOptions, tracking::TrackingOptions};
418
419 fn map(entries: &[(&str, &str)]) -> BTreeMap<String, String> {
420 entries
421 .iter()
422 .map(|(path, inode)| (path.to_string(), inode.to_string()))
423 .collect()
424 }
425 #[test]
426 fn pair_canonical_identities_before_path_replacements_or_similarity() {
427 for (old, new, expected) in [

Callers 4

executeFunction · 0.85
mainFunction · 0.85
split_viewMethod · 0.85

Calls 2

collectMethod · 0.45
iterMethod · 0.45