(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestFindGitRootForPath(t *testing.T) { |
| 92 | // Test with current file path |
| 93 | gitRoot, err := findGitRootForPath("git_helpers_test.go") |
| 94 | if err != nil { |
| 95 | // This is okay if we're not in a git repository |
| 96 | t.Logf("findGitRootForPath returned error: %v", err) |
| 97 | return |
| 98 | } |
| 99 | |
| 100 | if gitRoot == "" { |
| 101 | t.Error("findGitRootForPath returned empty string without error") |
| 102 | } else { |
| 103 | t.Logf("Git root: %s", gitRoot) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestGetRepositorySlugFromRemoteForPath(t *testing.T) { |
| 108 | // Test with current file path |
nothing calls this directly
no test coverage detected