Add smoke test for collaboration
This commit is contained in:
parent
ca4da52e39
commit
c6d7ed33c2
3 changed files with 104 additions and 10 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue