This is an automated email from the ASF dual-hosted git repository. kinow pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit 560e8d65252fb086f0aa9776488a7898a844acc9 Author: gwlucastrig <[email protected]> AuthorDate: Wed Aug 12 19:33:11 2020 -0400 [IMAGING-263]: Increase coverage in TIFF data reader --- .../commons/imaging/formats/tiff/TiffFloatingPointReadTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java index a73bf2e..0791fb8 100644 --- a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java +++ b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java @@ -174,6 +174,8 @@ public class TiffFloatingPointReadTest { checkSubImage(target, fullRaster, i+1, i, 8, 8); } + // now read the entire image + checkSubImage(target, fullRaster, 0, 0, width, height); // Test the USGS overview file ------------------------------ // We know from inspection that this sample file contains values @@ -210,6 +212,9 @@ public class TiffFloatingPointReadTest { for(int i=0; i<height-8; i++){ checkSubImage(target, fullRaster, i, i, 8, 8); } + + // now read the entire image + checkSubImage(target, fullRaster, 0, 0, width, height); } catch (ImageReadException | IOException ex) { fail("Exception during test " + ex.getMessage()); }
