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

Function TestPassesWithNoHooks

hooks/pre_commit_test.go:81–88  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestPassesWithNoHooks(t *testing.T) {
82 tempDir := initGitForPreCommit(t)
83 tempDir.MkdirAll(".quickhook", "pre-commit")
84
85 output, err := tempDir.ExecQuickhook("hook", "pre-commit")
86 assert.NoError(t, err)
87 assert.Equal(t, "", output)
88}
89
90func TestPassesWithPassingHooks(t *testing.T) {
91 tempDir := initGitForPreCommit(t)

Callers

nothing calls this directly

Calls 3

initGitForPreCommitFunction · 0.85
MkdirAllMethod · 0.80
ExecQuickhookMethod · 0.80

Tested by

no test coverage detected