Clover icon

Coverage Report

  1. Project Clover database Thu Dec 4 2025 14:43:25 GMT
  2. Package jalview.testutils

File Matchers.java

 

Coverage histogram

../../img/srcFileCovDistChart8.png
20% of files have more coverage

Code metrics

0
4
4
1
34
27
4
1
1
4
1

Classes

Class Line # Actions
Matchers 11 4 4
0.7575%
 

Contributing tests

This file is covered by 50 tests. .

Source view

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   
 
11    public class Matchers
12    {
 
13  79 toggle public static Matcher<SequenceI> matchesSequenceString(String sequence)
14    {
15  79 return new SequenceStringMatcher(sequence);
16    }
17   
 
18  818 toggle public static Matcher<SequenceI> matchesSequenceString(SequenceI sequence)
19    {
20  818 return new SequenceStringMatcher(sequence.getSequenceAsString());
21    }
22   
 
23  0 toggle public static Matcher<Annotation[]> matchesAnnotations(
24    List<Annotation> annotations)
25    {
26  0 return new AnnotationsMatcher(annotations);
27    }
28   
 
29  32 toggle public static Matcher<Annotation[]> matchesAnnotations(
30    Annotation... annotations)
31    {
32  32 return new AnnotationsMatcher(Arrays.asList(annotations));
33    }
34    }