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

Function summarize

script/ghmock/server_test.go:34–54  ·  view source on GitHub ↗
(entries []loggedRequest)

Source from the content-addressed store, hash-verified

32}
33
34func summarize(entries []loggedRequest) []logSummary {
35 var out []logSummary
36 for _, e := range entries {
37 out = append(out, logSummary{
38 Seq: e.Seq,
39 Name: e.Name,
40 Body: e.Body,
41 Status: e.Status,
42 Matched: e.Matched,
43 Blocked: e.Blocked,
44 TLSFailed: e.TLSError != "",
45 Response: e.Response,
46 Responses: e.Responses,
47 OffSchema: e.OffSchema,
48 QueryProblems: e.QueryProblems,
49 SchemaProblems: e.SchemaProblems,
50 SchemaNote: e.SchemaNote,
51 })
52 }
53 return out
54}
55
56func graphQLBody(t *testing.T, query string, operation ...string) string {
57 t.Helper()

Callers 2

TestMockServerFunction · 0.85
TestRunAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected