(data []byte, out any)
| 328 | } |
| 329 | |
| 330 | func decodeJSON(data []byte, out any) error { |
| 331 | dec := json.NewDecoder(bytes.NewReader(data)) |
| 332 | dec.UseNumber() |
| 333 | if err := dec.Decode(out); err != nil { |
| 334 | return err |
| 335 | } |
| 336 | if err := dec.Decode(&struct{}{}); err != io.EOF { |
| 337 | if err == nil { |
| 338 | return fmt.Errorf("unexpected trailing content") |
| 339 | } |
| 340 | return err |
| 341 | } |
| 342 | return nil |
| 343 | } |
| 344 | |
| 345 | func entryKey(namespace, operation, inputsJSON string) tupleKey { |
| 346 | return tupleKey{ |
no test coverage detected