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

Function rawBodySummary

script/ghmock/log.go:151–153  ·  view source on GitHub ↗
(body []byte)

Source from the content-addressed store, hash-verified

149}
150
151func rawBodySummary(body []byte) string {
152 return fmt.Sprintf("%d bytes, sha256 %x", len(body), sha256.Sum256(body))
153}
154
155func cmdReset(args []string, stdout io.Writer) error {
156 if askedForHelp(args) {

Callers 4

printLogFunction · 0.85
TestPrintReportFunction · 0.85
formatRequestFunction · 0.85
formatPayloadsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestPrintReportFunction · 0.68