MCPcopy Create free account
hub / github.com/github/gh-aw / TestIsGitRepo

Function TestIsGitRepo

pkg/cli/commands_utils_test.go:136–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func TestIsGitRepo(t *testing.T) {
137 // Test in current directory (should be a git repo based on project setup)
138 result := isGitRepo()
139
140 // Since we're running in a git repository, this should return true
141 if !result {
142 t.Error("Expected isGitRepo() to return true in git repository")
143 }
144}
145
146// TestFindGitRoot is already tested in gitroot_test.go, skipping duplicate
147

Callers

nothing calls this directly

Calls 2

isGitRepoFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected