Documentation ¶
Index ¶
Constants ¶
View Source
const TestPath = "/tmp/git-commit-hook"
TestPath holds the absolute path to the test folder
View Source
const TestPathGitFolder = "/tmp/git-commit-hook/.git"
TestPathGitFolder holds the .git folder for the test
View Source
const TestPathHooksFolder = "/tmp/git-commit-hook/.git/hooks"
TestPathHooksFolder holds the hooks folder inside the .git folder for the test
Variables ¶
This section is empty.
Functions ¶
func CleanupTestEnvironment ¶
CleanupTestEnvironment removes all test folders
func InitGitRepository ¶
InitGitRepository initializes a test git repository with the given branch name in the current directory
func InitTestFolder ¶
InitTestFolder cleans up an eventually existing folder, creates it again and changes working dir to that folder
func PreapreTestEnvironment ¶
PreapreTestEnvironment writes a test config file to the test folder
func WriteConfigFile ¶
WriteConfigFile writes a test config file into the given folder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.