/external/hamcrest/src/org/hamcrest/core/ |
AllOf.java | 4 import org.hamcrest.Matcher; 12 * shortcut, so that the second matcher is not called if the first 13 * matcher returns <code>false</code>. 16 private final Iterable<Matcher<? extends T>> matchers; 18 public AllOf(Iterable<Matcher<? extends T>> matchers) { 23 for (Matcher<? extends T> matcher : matchers) { 24 if (!matcher.matches(o)) { 39 public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers) [all...] |
AnyOf.java | 4 import org.hamcrest.Matcher; 12 * shortcut, so that the second matcher is not called if the first 13 * matcher returns <code>true</code>. 17 private final Iterable<Matcher<? extends T>> matchers; 19 public AnyOf(Iterable<Matcher<? extends T>> matchers) { 24 for (Matcher<? extends T> matcher : matchers) { 25 if (matcher.matches(o)) { 40 public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers) [all...] |
Is.java | 6 import org.hamcrest.Matcher; 11 * Decorates another Matcher, retaining the behavior but allowing tests 19 private final Matcher<T> matcher; field in class:Is 21 public Is(Matcher<T> matcher) { 22 this.matcher = matcher; 26 return matcher.matches(arg); 30 description.appendText("is ").appendDescriptionOf(matcher); [all...] |
IsNot.java | 7 import org.hamcrest.Matcher; 13 * Calculates the logical negation of a matcher. 16 private final Matcher<T> matcher; field in class:IsNot 18 public IsNot(Matcher<T> matcher) { 19 this.matcher = matcher; 23 return !matcher.matches(arg); 27 description.appendText("not ").appendDescriptionOf(matcher); [all...] |
IsNull.java | 7 import org.hamcrest.Matcher; 27 public static <T> Matcher<T> nullValue() { 35 public static <T> Matcher<T> notNullValue() { 43 public static <T> Matcher<T> nullValue(@SuppressWarnings("unused") Class<T> type) { 51 public static <T> Matcher<T> notNullValue(@SuppressWarnings("unused") Class<T> type) {
|
IsAnything.java | 6 import org.hamcrest.Matcher; 12 * A matcher that always returns <code>true</code>. 35 * This matcher always evaluates to true. 38 public static <T> Matcher<T> anything() { 43 * This matcher always evaluates to true. 48 public static <T> Matcher<T> anything(String description) { 53 * This matcher always evaluates to true. With type inference. 56 public static <T> Matcher<T> any(@SuppressWarnings("unused")Class<T> type) {
|
/external/mockito/src/org/mockito/internal/matchers/ |
MatcherDecorator.java | 9 import org.hamcrest.Matcher;
13 Matcher getActualMatcher();
|
AnyVararg.java | 9 import org.hamcrest.Matcher;
16 public static final Matcher ANY_VARARG = new AnyVararg();
|
And.java | 13 import org.hamcrest.Matcher; 20 private final List<Matcher> matchers; 22 public And(List<Matcher> matchers) { 27 for (Matcher matcher : matchers) { 28 if (!matcher.matches(actual)) { 37 for (Iterator<Matcher> it = matchers.iterator(); it.hasNext();) {
|
Or.java | 13 import org.hamcrest.Matcher; 20 private final List<Matcher> matchers; 22 public Or(List<Matcher> matchers) { 27 for (Matcher matcher : matchers) { 28 if (matcher.matches(actual)) { 37 for (Iterator<Matcher> it = matchers.iterator(); it.hasNext();) {
|
Not.java | 11 import org.hamcrest.Matcher; 18 private final Matcher first; 20 public Not(Matcher first) {
|
/external/hamcrest/src/org/hamcrest/ |
Matcher.java | 6 * A matcher over acceptable values. 7 * A matcher is able to describe itself to give feedback when it fails. 9 * Matcher implementations should <b>NOT directly implement this interface</b>. 11 * which will ensure that the Matcher API can grow to support 12 * new features and remain compatible with all Matcher implementations. 14 * For easy access to common Matcher implementations, use the static factory 21 public interface Matcher<T> extends SelfDescribing { 24 * Evaluates the matcher for argument <var>item</var>. 27 * because the caller of the Matcher does not know at runtime what the type is 31 * @param item the object against which the matcher is evaluated [all...] |
BaseMatcher.java | 6 * BaseClass for all Matcher implementations. 8 * @see Matcher 10 public abstract class BaseMatcher<T> implements Matcher<T> { 13 * @see Matcher#_dont_implement_Matcher___instead_extend_BaseMatcher_() 16 // See Matcher interface for an explanation of this method.
|
CoreMatchers.java | 7 * Decorates another Matcher, retaining the behavior but allowing tests 13 public static <T> org.hamcrest.Matcher<T> is(org.hamcrest.Matcher<T> matcher) { 14 return org.hamcrest.core.Is.is(matcher); 23 public static <T> org.hamcrest.Matcher<T> is(T value) { 33 public static org.hamcrest.Matcher<java.lang.Object> is(java.lang.Class<?> type) { 40 public static <T> org.hamcrest.Matcher<T> not(org.hamcrest.Matcher<T> matcher) { [all...] |
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
javascripttokenizer.py | 26 from closure_linter.common import matcher namespace 31 Matcher = matcher.Matcher 35 """Enumeration of the different matcher modes used for JavaScript.""" 197 Matcher(END_BLOCK_COMMENT, Type.END_DOC_COMMENT, 201 Matcher(DOC_INLINE_FLAG, Type.DOC_INLINE_FLAG), 202 Matcher(DOC_FLAG_LEX_SPACES, Type.DOC_FLAG, 206 Matcher(DOC_FLAG, Type.DOC_FLAG, JavaScriptModes.DOC_COMMENT_MODE), 209 Matcher(START_BLOCK, Type.DOC_START_BRACE) [all...] |
/external/llvm/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -----------===// 22 class Matcher; 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 33 Matcher *OptimizeMatcher(Matcher *Matcher, const CodeGenDAGPatterns &CGP); 34 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP, 38 /// Matcher - Base class for all the DAG ISel Matcher representatio [all...] |
/external/junit/src/org/junit/internal/matchers/ |
IsCollectionContaining.java | 11 import org.hamcrest.Matcher; 15 private final Matcher<? extends T> elementMatcher; 17 public IsCollectionContaining(Matcher<? extends T> elementMatcher) { 38 public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher) { 43 public static <T> Matcher<Iterable<T>> hasItem(T element) { 48 public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers) { 49 Collection<Matcher<? extends Iterable<T>>> all 50 = new ArrayList<Matcher<? extends Iterable<T>>>(elementMatchers.length) [all...] |
CombinableMatcher.java | 7 import org.hamcrest.Matcher; 11 private final Matcher<? extends T> fMatcher; 13 public CombinableMatcher(Matcher<? extends T> matcher) { 14 fMatcher= matcher; 26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) { 27 return new CombinableMatcher<T>(allOf(matcher, fMatcher)); 31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) { [all...] |
Each.java | 7 import org.hamcrest.Matcher; 10 public static <T> Matcher<Iterable<T>> each(final Matcher<T> individual) { 11 final Matcher<Iterable<T>> allItemsAre = not(hasItem(not(individual)));
|
StringContains.java | 6 import org.hamcrest.Matcher; 27 public static Matcher<String> containsString(String substring) {
|
/external/chromium/testing/gmock/test/ |
gmock-generated-internal-utils_test.cc | 43 using ::testing::Matcher; 56 CompileAssertTypesEqual<tuple<Matcher<int> >, 61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >, 66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>, 67 Matcher<double>, Matcher<char*> >, 88 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>() [all...] |
/external/junit/src/org/junit/matchers/ |
JUnitMatchers.java | 3 import org.hamcrest.Matcher; 16 * @return A matcher matching any collection containing element 18 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(T element) { 24 * @return A matcher matching any collection containing an element matching elementMatcher 26 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItem(org.hamcrest.Matcher<? extends T> elementMatcher) { 32 * @return A matcher matching any collection containing every element in elements 34 public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> hasItems(T... elements) { 40 * @return A matcher matching any collection containing at least one element that matches 41 * each matcher in elementMatcher (this may be one element matching all matchers [all...] |
/external/chromium/testing/gmock/src/ |
gmock-matchers.cc | 34 // This file implements Matcher<const string&>, Matcher<string>, and 46 // Constructs a matcher that matches a const string& whose value is 48 Matcher<const internal::string&>::Matcher(const internal::string& s) { 52 // Constructs a matcher that matches a const string& whose value is 54 Matcher<const internal::string&>::Matcher(const char* s) { 58 // Constructs a matcher that matches a string whose value is equal to s. 59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); [all...] |
/external/mockito/src/org/mockito/internal/progress/ |
ArgumentMatcherStorage.java | 7 import org.hamcrest.Matcher;
15 HandyReturnValues reportMatcher(Matcher matcher);
|
/external/clang/include/clang/ASTMatchers/ |
ASTMatchersMacros.h | 11 // Since a matcher is a function which returns a Matcher<T> object, where 12 // T is the type of the actual implementation of the matcher, the macros allow 16 // Note that when you define a matcher with an AST_MATCHER* macro, only the 17 // function which creates the matcher goes into the current namespace - the 18 // class that implements the actual matcher, which gets returned by the 23 // To define a matcher in user code, always put it into the clang::ast_matchers 29 // internal::Matcher<ValueDecl>, InnerMatcher) { 42 /// Matcher<Type> object. 56 class matcher_##DefineMatcher##OverloadId##Matcher \ [all...] |