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

Function TestInstallNoQuickhookDirectory

install_test.go:45–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestInstallNoQuickhookDirectory(t *testing.T) {
46 tempDir := test.NewTempDir(t, 0)
47 tempDir.RequireExec("git", "init", "--quiet", ".")
48
49 output, err := tempDir.ExecQuickhook("install", "--yes")
50 assert.Error(t, err)
51 assert.Contains(t, output, "Missing hooks directory")
52}
53
54func TestPromptForInstall(t *testing.T) {
55 ptyTests := []struct {

Callers

nothing calls this directly

Calls 3

RequireExecMethod · 0.95
ExecQuickhookMethod · 0.95
NewTempDirFunction · 0.92

Tested by

no test coverage detected