Documentation ¶
Overview ¶
Package localremote aids (go-)git-related unit tests by managing temporary git repositories in the file system. Now, go-git can perfectly access remote repositories which are actually local (using the "file:" protocol), hence the package name "localremote".
This package leverages Ginko testing framework and Gomega matcher library for simplifying the code and at the same time making it expressive, without the overly load noise of Go's (barely existing) assertion checking and error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTransientTestRepo ¶
func CreateTransientTestRepo() (repopath string)
CreateTransientTestRepo initializes and populates a fresh git repository in a new temporary directory and then returns the path to this newly created directory.
Types ¶
This section is empty.