(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func 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 | |
| 90 | func TestPassesWithPassingHooks(t *testing.T) { |
| 91 | tempDir := initGitForPreCommit(t) |
nothing calls this directly
no test coverage detected