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

Function TestGetRepositorySlugFromRemote

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

Source from the content-addressed store, hash-verified

75}
76
77func TestGetRepositorySlugFromRemote(t *testing.T) {
78 // This test verifies that the function can execute without errors in a git repo
79 // The actual value will depend on the repository being tested
80 result := getRepositorySlugFromRemote()
81
82 // In the gh-aw repository, we should get a non-empty slug
83 // But we can't assert the exact value since it might change
84 if result != "" {
85 t.Logf("Repository slug: %s", result)
86 } else {
87 t.Log("Repository slug is empty (may be expected if not in a git repo)")
88 }
89}
90
91func TestFindGitRootForPath(t *testing.T) {
92 // Test with current file path

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected