Skip to content

Commit

Permalink
Add isThisType/used files test exclusions for TecanReader
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Nov 24, 2020
1 parent a730fe7 commit 4c75576
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/test-suite/src/loci/tests/testng/FormatReaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1986,6 +1986,13 @@ else if (success) {
continue;
}

// Tecan datasets can only be detected with the .db file
if (reader.getFormat().equals("Tecan Spark Cyto") &&
!base[i].toLowerCase().endsWith(".db"))
{
continue;
}

r.setId(base[i]);

String[] comp = r.getUsedFiles();
Expand Down Expand Up @@ -2739,6 +2746,20 @@ public void testIsThisType() {
continue;
}

// Tecan data can only be detected with the .db file
if (!result && readers[j] instanceof TecanReader &&
!used[i].toLowerCase().endsWith(".db"))
{
continue;
}

// OK for other readers to flag Tecan files other than .db
if (result && r instanceof TecanReader &&
!used[i].toLowerCase().endsWith(".db"))
{
continue;
}

boolean expected = r == readers[j];
if (result != expected) {
success = false;
Expand Down

0 comments on commit 4c75576

Please sign in to comment.