MCPcopy Index your code
hub / github.com/github/gh-aw / TestGetRepositorySlugFromRemoteForPath

Function TestGetRepositorySlugFromRemoteForPath

pkg/cli/git_helpers_test.go:107–117  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestGetRepositorySlugFromRemoteForPath(t *testing.T) {
108 // Test with current file path
109 slug := getRepositorySlugFromRemoteForPath("git_helpers_test.go")
110
111 // Log the result - we can't assert exact value
112 if slug != "" {
113 t.Logf("Repository slug for path: %s", slug)
114 } else {
115 t.Log("Repository slug for path is empty (may be expected if not in a git repo)")
116 }
117}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected