(t *testing.T, data []byte)
| 401 | } |
| 402 | |
| 403 | func decodeShareLinkOperationOutputWithWarnings[I, R any](t *testing.T, data []byte) shareLinkOperationOutputForTest[I, R] { |
| 404 | t.Helper() |
| 405 | var got shareLinkOperationOutputForTest[I, R] |
| 406 | decodeJSONOutput(t, data, &got) |
| 407 | if got.Warnings == nil { |
| 408 | t.Fatalf("warnings = nil, want empty array") |
| 409 | } |
| 410 | return got |
| 411 | } |
| 412 | |
| 413 | func assertNoTopLevelJSONField(t *testing.T, data []byte, field string) { |
| 414 | t.Helper() |
no test coverage detected