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

Function assert_clean

atomic-repository/tests/it/remote_cache_parity_test.rs:115–127  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

113}
114
115fn assert_clean(repo: &Repository) {
116 let status = repo
117 .status(
118 repo.require_working_copy_id().unwrap(),
119 StatusOptions::default(),
120 )
121 .unwrap();
122 assert!(
123 status.is_clean(),
124 "canonical cache baseline is dirty: {:?}",
125 status.entries()
126 );
127}
128
129/// A host repository with some history, and a cache materialized from it.
130fn pair(history: impl Fn(&Repository)) -> (Pair, String, BTreeMap<u64, String>) {

Calls 3

unwrapMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected