MCPcopy Create free account
hub / github.com/dirk/quickhook / initGitForCommitMsg

Function initGitForCommitMsg

hooks/commit_msg_test.go:14–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func initGitForCommitMsg(t *testing.T) test.TempDir {
15 tempDir := test.NewTempDir(t, 1)
16 tempDir.RequireExec("git", "init", "--quiet", ".")
17 return tempDir
18}
19
20func writeCommitEditMsg(t *testing.T, data string) string {
21 name := path.Join(t.TempDir(), "COMMIT_EDITMSG")

Callers 2

TestHookMutatesCommitMsgFunction · 0.85
TestFailingHookFunction · 0.85

Calls 2

RequireExecMethod · 0.95
NewTempDirFunction · 0.92

Tested by

no test coverage detected