(req schema.PIIAnalyzeRequest)
| 159 | } |
| 160 | |
| 161 | func analyze(req schema.PIIAnalyzeRequest) (int, schema.PIIAnalyzeResponse) { |
| 162 | GinkgoHelper() |
| 163 | status, body := postJSON("/api/pii/analyze", req) |
| 164 | var resp schema.PIIAnalyzeResponse |
| 165 | if status == http.StatusOK { |
| 166 | Expect(json.Unmarshal(body, &resp)).To(Succeed()) |
| 167 | } |
| 168 | return status, resp |
| 169 | } |
| 170 | |
| 171 | func redact(req schema.PIIAnalyzeRequest) (int, []byte) { |
| 172 | GinkgoHelper() |
no test coverage detected