| 1 |
|
package jalview.testutils; |
| 2 |
|
|
| 3 |
|
import java.util.Arrays; |
| 4 |
|
import java.util.List; |
| 5 |
|
|
| 6 |
|
import org.hamcrest.Matcher; |
| 7 |
|
|
| 8 |
|
import jalview.datamodel.Annotation; |
| 9 |
|
import jalview.datamodel.SequenceI; |
| 10 |
|
|
| |
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
| 11 |
|
public class Matchers |
| 12 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 13 |
0 |
public static Matcher<SequenceI> matchesSequenceString(String sequence)... |
| 14 |
|
{ |
| 15 |
0 |
return new SequenceStringMatcher(sequence); |
| 16 |
|
} |
| 17 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 18 |
0 |
public static Matcher<SequenceI> matchesSequenceString(SequenceI sequence)... |
| 19 |
|
{ |
| 20 |
0 |
return new SequenceStringMatcher(sequence.getSequenceAsString()); |
| 21 |
|
} |
| 22 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 23 |
0 |
public static Matcher<Annotation[]> matchesAnnotations(... |
| 24 |
|
List<Annotation> annotations) |
| 25 |
|
{ |
| 26 |
0 |
return new AnnotationsMatcher(annotations); |
| 27 |
|
} |
| 28 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 29 |
0 |
public static Matcher<Annotation[]> matchesAnnotations(... |
| 30 |
|
Annotation... annotations) |
| 31 |
|
{ |
| 32 |
0 |
return new AnnotationsMatcher(Arrays.asList(annotations)); |
| 33 |
|
} |
| 34 |
|
} |