(t *testing.T)
| 646 | } |
| 647 | |
| 648 | func 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 | |
| 656 | func TestJSONErrorDetailsIncludesAuthRemediation(t *testing.T) { |
| 657 | got := newJSONErrorResponse(&cobra.Command{Use: "account"}, missingAccessTokenError(tokenPersonal)) |
nothing calls this directly
no test coverage detected