Coverage Report - com.lexicalscope.fluentreflection.MatcherHasNameStartingWith
 
Classes in this File Line Coverage Branch Coverage Complexity
MatcherHasNameStartingWith
100%
7/7
N/A
1
 
 1  2880
 /**
 2  
  * 
 3  
  */
 4  
 package com.lexicalscope.fluentreflection;
 5  
 
 6  
 import org.hamcrest.Description;
 7  
 
 8  
 final class MatcherHasNameStartingWith extends ReflectionMatcher<FluentMember> {
 9  
     private final String prefix;
 10  
 
 11  784
     MatcherHasNameStartingWith(final String prefix) {
 12  784
         this.prefix = prefix;
 13  784
     }
 14  
 
 15  
     @Override
 16  
     public boolean matchesSafely(final FluentMember arg) {
 17  2880
         return arg.name().startsWith(prefix);
 18  
     }
 19  
 
 20  
     @Override
 21  
     public void describeTo(final Description description) {
 22  8
         description.appendText("callable starting with ").appendValue(prefix);
 23  8
     }
 24  
 }