Skip to content

Commit

Permalink
Add AbsPath function to mock struct
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Jun 16, 2024
1 parent cf6dc6a commit 4d6cffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func (r *RepoMock) Path() string {
return r.path
}

func (r *RepoMock) AbsPath() string {
return r.path
}

func (r *RepoMock) GitDir() string {
return r.Path() + "/.git"
}
Expand Down

0 comments on commit 4d6cffc

Please sign in to comment.