MCPcopy Index your code
hub / github.com/cloudfoundry/cli / generateDescription

Function generateDescription

actor/v7action/event.go:72–78  ·  view source on GitHub ↗
(data map[string]interface{})

Source from the content-addressed store, hash-verified

70}
71
72func generateDescription(data map[string]interface{}) string {
73 mappedData := generic.NewMap(data)
74 if mappedData.Has("request") {
75 mappedData = generic.NewMap(mappedData.Get("request"))
76 }
77 return formatDescription(mappedData, knownMetadataKeys)
78}
79
80func formatDescription(metadata generic.Map, keys []string) string {
81 parts := []string{}

Calls 4

HasMethod · 0.95
GetMethod · 0.95
NewMapFunction · 0.92
formatDescriptionFunction · 0.70

Tested by

no test coverage detected