(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func 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 | |
| 54 | func TestPromptForInstall(t *testing.T) { |
| 55 | ptyTests := []struct { |
nothing calls this directly
no test coverage detected