MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / getBody

Function getBody

credhub/set_test.go:523–529  ·  view source on GitHub ↗
(body io.ReadCloser)

Source from the content-addressed store, hash-verified

521})
522
523func getBody(body io.ReadCloser) map[string]interface{} {
524 var requestBody map[string]interface{}
525 bodyBytes, err := io.ReadAll(body)
526 Expect(err).ToNot(HaveOccurred())
527 Expect(json.Unmarshal(bodyBytes, &requestBody)).To(Succeed())
528 return requestBody
529}

Callers 1

set_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…