Documentation
¶
Index ¶
- type GitTestRepo
- func (r *GitTestRepo) AddFile(t *testing.T, fp string)
- func (r *GitTestRepo) CommitFile(t *testing.T, filename string, body string) plumbing.Hash
- func (r *GitTestRepo) CreateFile(t *testing.T, filename string, body string) string
- func (r *GitTestRepo) Git(t *testing.T, args ...string) string
- func (r *GitTestRepo) ReadFile(t *testing.T, filename string) string
- type NicheGitOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitTestRepo ¶
type GitTestRepo struct {
RepoDir string
}
func NewTempRepo ¶
func NewTempRepo(t *testing.T) *GitTestRepo
func (*GitTestRepo) CommitFile ¶
func (*GitTestRepo) CreateFile ¶
type NicheGitOutput ¶
func RequireNicheGit ¶
func RequireNicheGit(t *testing.T, args ...string) NicheGitOutput
Click to show internal directories.
Click to hide internal directories.