(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestGetCommitMessage(t *testing.T) { |
| 60 | dir := initTestGitRepo(t) |
| 61 | msg, err := getCommitMessage(dir, "HEAD") |
| 62 | if err != nil { |
| 63 | t.Fatalf("unexpected error: %v", err) |
| 64 | } |
| 65 | if msg != "initial commit" { |
| 66 | t.Errorf("msg = %q, want 'initial commit'", msg) |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func TestGetCommitMessage_InvalidCommit(t *testing.T) { |
| 71 | dir := initTestGitRepo(t) |
nothing calls this directly
no test coverage detected