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

Function skipWithoutGitHubAuth

pkg/cli/update_integration_test.go:88–94  ·  view source on GitHub ↗

skipWithoutGitHubAuth skips the test if GitHub authentication is not available

(t *testing.T)

Source from the content-addressed store, hash-verified

86
87// skipWithoutGitHubAuth skips the test if GitHub authentication is not available
88func skipWithoutGitHubAuth(t *testing.T) {
89 t.Helper()
90 authCmd := exec.Command("gh", "auth", "status")
91 if err := authCmd.Run(); err != nil {
92 t.Skip("Skipping test: GitHub authentication not available (gh auth status failed)")
93 }
94}
95
96// --- Ref Resolution Integration Tests ---
97

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected