(t *testing.T)
| 567 | } |
| 568 | |
| 569 | func TestJSONErrorDetailsIncludesJoinedErrorDetails(t *testing.T) { |
| 570 | err := errors.Join( |
| 571 | partialStdoutError(7), |
| 572 | invalidArgumentsErrorWithDetails("missing path", flagErrorDetails("path")), |
| 573 | ) |
| 574 | |
| 575 | details := jsonErrorDetails(err) |
| 576 | if details["bytes_written"] != int64(7) || details["flag"] != "path" { |
| 577 | t.Fatalf("details = %+v, want joined error details", details) |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | func TestRenderCommandErrorIncludesDropboxAPIEndpointDetails(t *testing.T) { |
| 582 | var stdout bytes.Buffer |
nothing calls this directly
no test coverage detected