MCPcopy Create free account
hub / github.com/cli/cli / Error

Method Error

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

Source from the content-addressed store, hash-verified

16}
17
18func (e MissingScopesError) Error() string {
19 var missing []string
20 for _, s := range e.MissingScopes {
21 missing = append(missing, fmt.Sprintf("'%s'", s))
22 }
23 scopes := strings.Join(missing, ", ")
24
25 if len(e.MissingScopes) == 1 {
26 return "missing required scope " + scopes
27 }
28 return "missing required scopes " + scopes
29}
30
31type httpClient interface {
32 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