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

Function displayName

script/ghmock/report.go:215–220  ·  view source on GitHub ↗

displayName names a request in reports, including blocked ones.

(e loggedRequest)

Source from the content-addressed store, hash-verified

213
214// displayName names a request in reports, including blocked ones.
215func displayName(e loggedRequest) string {
216 if e.Name != "" {
217 return e.Name
218 }
219 return e.Method + " " + e.Host + e.Path
220}
221
222func formatRequest(e loggedRequest) string {
223 var b strings.Builder

Callers 7

blockedNamesFunction · 0.70
printProblemsFunction · 0.70
formatRequestFunction · 0.70
askedFieldsFunction · 0.70
countNamesFunction · 0.70
unionNamesFunction · 0.70
requestPayloadsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected