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

Function gqlEntry

script/ghmock/scaffold_test.go:73–82  ·  view source on GitHub ↗
(run, operation, query, vars string)

Source from the content-addressed store, hash-verified

71}
72
73func gqlEntry(run, operation, query, vars string) loggedRequest {
74 e := loggedRequest{
75 Run: run, Binary: "gh", Method: "POST", Host: apiHost, Path: "/graphql", Name: "graphql " + operation,
76 GraphQL: &graphQLRequest{Kind: "query", Operation: operation, Query: query},
77 }
78 if vars != "" {
79 e.GraphQL.Variables = json.RawMessage(vars)
80 }
81 return e
82}
83
84func restEntry(run, name string) loggedRequest {
85 method, path, _ := strings.Cut(name, " ")

Callers 1

TestCmdScaffoldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected