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

Function tree_of

atomic-repository/tests/it/remote_cache_parity_test.rs:367–378  ·  view source on GitHub ↗
(repo: &Repository, view: &str)

Source from the content-addressed store, hash-verified

365}
366
367fn tree_of(repo: &Repository, view: &str) -> Vec<(String, Vec<u8>)> {
368 let mut files = Vec::new();
369 repo.materialize_view_entries::<()>(view, |e| {
370 if e.kind == atomic_repository::ViewEntryKind::File {
371 files.push((e.path, e.content));
372 }
373 Ok(())
374 })
375 .unwrap()
376 .unwrap();
377 files
378}
379
380#[test]
381fn a_submitted_change_lands_on_the_view_and_the_next_one_builds_on_it() {

Calls 2

unwrapMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected