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

Function decodePutOutputWithWarnings

cmd/put_test.go:283–294  ·  view source on GitHub ↗
(t *testing.T, stdout *bytes.Buffer)

Source from the content-addressed store, hash-verified

281}
282
283func decodePutOutputWithWarnings(t *testing.T, stdout *bytes.Buffer) putOutputData {
284 t.Helper()
285
286 var got putOutputData
287 if err := json.Unmarshal(stdout.Bytes(), &got); err != nil {
288 t.Fatalf("decode put JSON output: %v\noutput: %s", err, stdout.String())
289 }
290 if got.Warnings == nil {
291 t.Fatalf("warnings = nil, want empty array")
292 }
293 return got
294}
295
296func putFileMetadata(path string, size uint64) *files.FileMetadata {
297 return &files.FileMetadata{

Callers 2

decodePutOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected