(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestIsInitialCommit(t *testing.T) { |
| 46 | wd, err := os.Getwd() |
| 47 | if err != nil { |
| 48 | t.Fatal(err) |
| 49 | } |
| 50 | |
| 51 | repo, err := NewRepository(wd) |
| 52 | if err != nil { |
| 53 | t.Skip("Not in a git repository, skipping test") |
| 54 | } |
| 55 | |
| 56 | repo.IsInitialCommit() |
| 57 | } |
nothing calls this directly
no test coverage detected