(body io.ReadCloser)
| 521 | }) |
| 522 | |
| 523 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…