MCPcopy Create free account
hub / github.com/dropbox/dbxcli / decodeShareLinkOperationOutputWithWarnings

Function decodeShareLinkOperationOutputWithWarnings

cmd/share_link_json_test.go:403–411  ·  view source on GitHub ↗
(t *testing.T, data []byte)

Source from the content-addressed store, hash-verified

401}
402
403func 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
413func assertNoTopLevelJSONField(t *testing.T, data []byte, field string) {
414 t.Helper()

Calls 1

decodeJSONOutputFunction · 0.85

Tested by

no test coverage detected