Add smoke test for collaboration

This commit is contained in:
Mikayla Maki 2023-05-04 06:41:11 -07:00
parent ca4da52e39
commit c6d7ed33c2
No known key found for this signature in database
3 changed files with 104 additions and 10 deletions

View file

@ -71,6 +71,7 @@ pub struct FakeGitRepository {
#[derive(Debug, Clone, Default)]
pub struct FakeGitRepositoryState {
pub index_contents: HashMap<PathBuf, String>,
pub branch_name: Option<String>,
}
impl FakeGitRepository {
@ -89,7 +90,8 @@ impl GitRepository for FakeGitRepository {
}
fn branch_name(&self) -> Option<String> {
None
let state = self.state.lock();
state.branch_name.clone()
}
}