MCPcopy Index your code
hub / github.com/cli/cli / Error

Method Error

pkg/cmd/auth/shared/oauth_scopes.go:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17func (e MissingScopesError) Error() string {
18 var missing []string
19 for _, s := range e.MissingScopes {
20 missing = append(missing, fmt.Sprintf("'%s'", s))
21 }
22 scopes := strings.Join(missing, ", ")
23
24 if len(e.MissingScopes) == 1 {
25 return "missing required scope " + scopes
26 }
27 return "missing required scopes " + scopes
28}
29
30type httpClient interface {
31 Do(*http.Request) (*http.Response, error)

Callers 15

TestNewCmdSetupGitFunction · 0.45
Test_NewCmdRefreshFunction · 0.45
Test_refreshRunFunction · 0.45
TestNewCmdTokenFunction · 0.45
TestTokenRunFunction · 0.45
Test_NewCmdLoginFunction · 0.45
buildEntryFunction · 0.45
TestNewCmdAgentTaskFunction · 0.45
TestNewCmdListFunction · 0.45
Test_viewRunFunction · 0.45
TestNewCmdListFunction · 0.45

Calls 1

JoinMethod · 0.80

Tested by 15

TestNewCmdSetupGitFunction · 0.36
Test_NewCmdRefreshFunction · 0.36
Test_refreshRunFunction · 0.36
TestNewCmdTokenFunction · 0.36
TestTokenRunFunction · 0.36
Test_NewCmdLoginFunction · 0.36
TestNewCmdAgentTaskFunction · 0.36
TestNewCmdListFunction · 0.36
Test_viewRunFunction · 0.36
TestNewCmdListFunction · 0.36
Test_listRunFunction · 0.36