Documentation
¶
Index ¶
- func CreateBareRemoteRepo(t testing.TB) string
- func CreateRemoteRepo(t testing.TB, branchName string) string
- func CreateRemoteRepoAt(t testing.TB, remoteRepoPath, tempRepoPath, branchName string) string
- func SetupPushableTestRepo(t testing.TB) (*git.Repository, error)
- func SetupTestFile(t testing.TB) error
- func SetupTestRepo(t testing.TB) (*git.Repository, error)
- func TBErrorIfNotNil(t testing.TB, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBareRemoteRepo ¶ added in v0.0.49
CreateBareRemoteRepo creates an empty bare repository that can be used as a push target.
func CreateRemoteRepo ¶
CreateRemoteRepo creates a fake remote repository with a default branch and an initial commit.
func CreateRemoteRepoAt ¶ added in v0.0.49
CreateRemoteRepoAt creates a fake remote repository with a default branch and an initial commit using the provided paths for the bare remote and temporary working repository.
func SetupPushableTestRepo ¶ added in v0.0.49
func SetupPushableTestRepo(t testing.TB) (*git.Repository, error)
SetupPushableTestRepo creates a local repository with an empty bare origin remote. This is cheaper than SetupTestRepo when tests only need a configured remote for push.
func SetupTestFile ¶
func SetupTestRepo ¶
func SetupTestRepo(t testing.TB) (*git.Repository, error)
func TBErrorIfNotNil ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.