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

Function TestJSONErrorDetailsDoesNotTreatLocalPathAsAPISummary

cmd/output_test.go:648–654  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

646}
647
648func TestJSONErrorDetailsDoesNotTreatLocalPathAsAPISummary(t *testing.T) {
649 err := pathConflictErrorWithPath("/file", "path exists and is not a folder: %s", "/file")
650 details := jsonErrorDetails(err)
651 if details["api_summary"] != nil {
652 t.Fatalf("details = %+v, did not expect api_summary for local path error", details)
653 }
654}
655
656func TestJSONErrorDetailsIncludesAuthRemediation(t *testing.T) {
657 got := newJSONErrorResponse(&cobra.Command{Use: "account"}, missingAccessTokenError(tokenPersonal))

Callers

nothing calls this directly

Calls 2

jsonErrorDetailsFunction · 0.85

Tested by

no test coverage detected