()
| 77 | } |
| 78 | |
| 79 | func (s *ImageDataTestSuite) TestDownloadStatusOK() { |
| 80 | imgdata, _, err := s.factory().DownloadSync( |
| 81 | context.Background(), s.testServer().URL(), "Test image", imagedata.DownloadOptions{}, |
| 82 | ) |
| 83 | |
| 84 | s.Require().NoError(err) |
| 85 | s.Require().NotNil(imgdata) |
| 86 | s.Require().True(testutil.ReadersEqual(s.T(), bytes.NewReader(s.data), imgdata.Reader())) |
| 87 | s.Require().Equal(imagetype.JPEG, imgdata.Format()) |
| 88 | } |
| 89 | |
| 90 | func (s *ImageDataTestSuite) TestDownloadStatusPartialContent() { |
| 91 | testCases := []struct { |
nothing calls this directly
no test coverage detected