(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestGetConfigBool(t *testing.T) { |
| 29 | wd, err := os.Getwd() |
| 30 | if err != nil { |
| 31 | t.Fatal(err) |
| 32 | } |
| 33 | |
| 34 | repo, err := NewRepository(wd) |
| 35 | if err != nil { |
| 36 | t.Skip("Not in a git repository, skipping test") |
| 37 | } |
| 38 | |
| 39 | result := repo.GetConfigBool("nonexistent.config.key") |
| 40 | if result { |
| 41 | t.Error("Non-existent config key should return false") |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func TestIsInitialCommit(t *testing.T) { |
| 46 | wd, err := os.Getwd() |
nothing calls this directly
no test coverage detected