MCPcopy Index your code
hub / github.com/github/github-mcp-server / getE2EToken

Function getE2EToken

e2e/e2e_test.go:46–54  ·  view source on GitHub ↗

getE2EToken ensures the environment variable is checked only once and returns the token

(t *testing.T)

Source from the content-addressed store, hash-verified

44
45// getE2EToken ensures the environment variable is checked only once and returns the token
46func getE2EToken(t *testing.T) string {
47 getTokenOnce.Do(func() {
48 token = os.Getenv("GITHUB_MCP_SERVER_E2E_TOKEN")
49 if token == "" {
50 t.Fatalf("GITHUB_MCP_SERVER_E2E_TOKEN environment variable is not set")
51 }
52 })
53 return token
54}
55
56// getE2EHost ensures the environment variable is checked only once and returns the host
57func getE2EHost() string {

Callers 3

getRESTClientFunction · 0.85
setupMCPClientFunction · 0.85
TestRequestCopilotReviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected