Home
last modified time | relevance | path

Searched refs:matchers (Results 1 – 25 of 124) sorted by relevance

12345

/external/easymock/src/org/easymock/internal/
DExpectedInvocation.java25 import org.easymock.internal.matchers.Equals;
36 private final List<IArgumentMatcher> matchers; field in ExpectedInvocation
39 List<IArgumentMatcher> matchers) { in ExpectedInvocation() argument
40 this(invocation, matchers, null); in ExpectedInvocation()
44 List<IArgumentMatcher> matchers, @SuppressWarnings("deprecation") in ExpectedInvocation() argument
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation, in ExpectedInvocation()
49 matchers) : null; in ExpectedInvocation()
53 List<IArgumentMatcher> matchers) { in createMissingMatchers() argument
54 if (matchers != null) { in createMissingMatchers()
55 if (matchers.size() != invocation.getArguments().length) { in createMissingMatchers()
[all …]
DLegacyMatcherProvider.java36 …private transient Map<Method, ArgumentsMatcher> matchers = new HashMap<Method, ArgumentsMatcher>(); field in LegacyMatcherProvider
39 if (!matchers.containsKey(method)) { in getMatcher()
43 matchers.put(method, defaultMatcher); in getMatcher()
45 return matchers.get(method); in getMatcher()
59 if (matchers.containsKey(method) && matchers.get(method) != matcher) { in setMatcher()
68 matchers.put(method, matcher); in setMatcher()
77 matchers = new HashMap<Method, ArgumentsMatcher>(map.size()); in readObject()
82 matchers.put(method, entry.getValue()); in readObject()
95 matchers.size()); in writeObject()
96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) { in writeObject()
/external/hamcrest/src/org/hamcrest/core/
DAllOf.java16 private final Iterable<Matcher<? extends T>> matchers; field in AllOf
18 public AllOf(Iterable<Matcher<? extends T>> matchers) { in AllOf() argument
19 this.matchers = matchers; in AllOf()
23 for (Matcher<? extends T> matcher : matchers) { in matches()
32 description.appendList("(", " and ", ")", matchers); in describeTo()
39 public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers) { in allOf() argument
40 return allOf(Arrays.asList(matchers)); in allOf()
47 public static <T> Matcher<T> allOf(Iterable<Matcher<? extends T>> matchers) { in allOf() argument
48 return new AllOf<T>(matchers); in allOf()
DAnyOf.java17 private final Iterable<Matcher<? extends T>> matchers; field in AnyOf
19 public AnyOf(Iterable<Matcher<? extends T>> matchers) { in AnyOf() argument
20 this.matchers = matchers; in AnyOf()
24 for (Matcher<? extends T> matcher : matchers) { in matches()
33 description.appendList("(", " or ", ")", matchers); in describeTo()
40 public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers) { in anyOf() argument
41 return anyOf(Arrays.asList(matchers)); in anyOf()
48 public static <T> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers) { in anyOf() argument
49 return new AnyOf<T>(matchers); in anyOf()
/external/proguard/src/proguard/util/
DListMatcher.java33 private final StringMatcher[] matchers; field in ListMatcher
37 public ListMatcher(StringMatcher[] matchers) in ListMatcher() argument
39 this(matchers, null); in ListMatcher()
43 public ListMatcher(StringMatcher[] matchers, boolean[] negate) in ListMatcher() argument
45 this.matchers = matchers; in ListMatcher()
55 for (int index = 0; index < matchers.length; index++) in matches()
57 StringMatcher matcher = matchers[index]; in matches()
/external/mockito/src/org/mockito/internal/invocation/
DInvocationMatcher.java15 import org.mockito.internal.matchers.CapturesArguments;
16 import org.mockito.internal.matchers.MatcherDecorator;
17 import org.mockito.internal.matchers.VarargMatcher;
28 private final List<Matcher> matchers; field in InvocationMatcher
30 public InvocationMatcher(Invocation invocation, List<Matcher> matchers) { in InvocationMatcher() argument
32 if (matchers.isEmpty()) { in InvocationMatcher()
33 this.matchers = ArgumentsProcessor.argumentsToMatchers(invocation.getArguments()); in InvocationMatcher()
35 this.matchers = matchers; in InvocationMatcher()
52 return this.matchers; in getMatchers()
56 return new PrintSettings().print(matchers, invocation); in toString()
[all …]
DArgumentsProcessor.java8 import org.mockito.internal.matchers.ArrayEquals;
9 import org.mockito.internal.matchers.Equals;
42 List<Matcher> matchers = new ArrayList<Matcher>(arguments.length); in argumentsToMatchers() local
45 matchers.add(new ArrayEquals(arg)); in argumentsToMatchers()
47 matchers.add(new Equals(arg)); in argumentsToMatchers()
50 return matchers; in argumentsToMatchers()
DArgumentsComparator.java8 import org.mockito.internal.matchers.MatcherDecorator;
9 import org.mockito.internal.matchers.VarargMatcher;
42 List<Matcher> matchers = invocationMatcher.getMatchers(); in varArgsMatch() local
44 if (rawArgs.length != matchers.size()) { in varArgsMatch()
49 Matcher m = matchers.get(i); in varArgsMatch()
/external/easymock/src/org/easymock/internal/matchers/
DAnd.java16 package org.easymock.internal.matchers;
28 private final List<IArgumentMatcher> matchers; field in And
30 public And(List<IArgumentMatcher> matchers) { in And() argument
31 this.matchers = matchers; in And()
35 for (IArgumentMatcher matcher : matchers) { in matches()
45 for (Iterator<IArgumentMatcher> it = matchers.iterator(); it.hasNext();) { in appendTo()
DOr.java16 package org.easymock.internal.matchers;
28 private final List<IArgumentMatcher> matchers; field in Or
30 public Or(List<IArgumentMatcher> matchers) { in Or() argument
31 this.matchers = matchers; in Or()
35 for (IArgumentMatcher matcher : matchers) { in matches()
45 for (Iterator<IArgumentMatcher> it = matchers.iterator(); it.hasNext();) { in appendTo()
/external/mockito/src/org/mockito/internal/matchers/
DAnd.java6 package org.mockito.internal.matchers;
20 private final List<Matcher> matchers; field in And
22 public And(List<Matcher> matchers) { in And() argument
23 this.matchers = matchers; in And()
27 for (Matcher matcher : matchers) { in matches()
37 for (Iterator<Matcher> it = matchers.iterator(); it.hasNext();) { in describeTo()
DOr.java6 package org.mockito.internal.matchers;
20 private final List<Matcher> matchers; field in Or
22 public Or(List<Matcher> matchers) { in Or() argument
23 this.matchers = matchers; in Or()
27 for (Matcher matcher : matchers) { in matches()
37 for (Iterator<Matcher> it = matchers.iterator(); it.hasNext();) { in describeTo()
DMatchersPrinter.java5 package org.mockito.internal.matchers;
19 public String getArgumentsLine(List<Matcher> matchers, PrintSettings printSettings) { in getArgumentsLine() argument
21 result.appendList("(", ", ", ");", applyPrintSettings(matchers, printSettings)); in getArgumentsLine()
25 public String getArgumentsBlock(List<Matcher> matchers, PrintSettings printSettings) { in getArgumentsBlock() argument
27 … result.appendList("(\n ", ",\n ", "\n);", applyPrintSettings(matchers, printSettings)); in getArgumentsBlock()
31 …private List<SelfDescribing> applyPrintSettings(List<Matcher> matchers, PrintSettings printSetting… in applyPrintSettings() argument
34 for (final Matcher matcher : matchers) { in applyPrintSettings()
/external/hamcrest/src/org/hamcrest/
DCoreMatchers.java72 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? extends T>... matchers) { in allOf() argument
73 return org.hamcrest.core.AllOf.allOf(matchers); in allOf()
79 …<T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers) { in allOf() argument
80 return org.hamcrest.core.AllOf.allOf(matchers); in allOf()
86 public static <T> org.hamcrest.Matcher<T> anyOf(org.hamcrest.Matcher<? extends T>... matchers) { in anyOf() argument
87 return org.hamcrest.core.AnyOf.anyOf(matchers); in anyOf()
93 …<T> org.hamcrest.Matcher<T> anyOf(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> matchers) { in anyOf() argument
94 return org.hamcrest.core.AnyOf.anyOf(matchers); in anyOf()
/external/clang/docs/
DLibASTMatchers.rst25 AST matchers are predicates on nodes in the AST. Matchers are created by
26 calling creator functions that allow building up a tree of matchers, where
27 inner matchers are used to make the match more specific.
35 unions that are named "``Foo``", in any namespace. By default, matchers that
36 accept multiple inner matchers use an implicit `allOf()
47 matcher you are interested in. Note that there will always be matchers missing
49 AST matchers <astmatchers-writing>` later in this document.
53 The precondition to using the matchers is to understand how the AST for what you
61 In general, the strategy to create the right matchers is:
65 matchers that either match the node you're interested in or narrow down
[all …]
/external/junit/src/org/junit/matchers/
DJUnitMatchers.java1 package org.junit.matchers;
4 import org.junit.internal.matchers.CombinableMatcher;
5 import org.junit.internal.matchers.Each;
6 import org.junit.internal.matchers.IsCollectionContaining;
7 import org.junit.internal.matchers.StringContains;
/external/mockito/src/org/mockito/internal/reporting/
DPrintSettings.java10 import org.mockito.internal.matchers.MatchersPrinter;
46 public String print(List<Matcher> matchers, Invocation invocation) { in print() argument
49 String invocationString = qualifiedName + matchersPrinter.getArgumentsLine(matchers, this); in print()
50 if (isMultiline() || (!matchers.isEmpty() && invocationString.length() > MAX_LINE_LENGTH)) { in print()
51 return qualifiedName + matchersPrinter.getArgumentsBlock(matchers, this); in print()
/external/mockito/src/org/mockito/internal/progress/
DArgumentMatcherStorageImpl.java10 import org.mockito.internal.matchers.And;
11 import org.mockito.internal.matchers.LocalizedMatcher;
12 import org.mockito.internal.matchers.Not;
13 import org.mockito.internal.matchers.Or;
44 List<LocalizedMatcher> matchers = new ArrayList<LocalizedMatcher>(matcherStack); in pullLocalizedMatchers() local
46 return (List) matchers; in pullLocalizedMatchers()
/external/mockito/src/org/mockito/internal/verification/argumentmatching/
DArgumentMatchingTool.java12 import org.mockito.internal.matchers.ContainsExtraTypeInformation;
20 …public Integer[] getSuspiciouslyNotMatchingArgsIndexes(List<Matcher> matchers, Object[] arguments)… in getSuspiciouslyNotMatchingArgsIndexes() argument
21 if (matchers.size() != arguments.length) { in getSuspiciouslyNotMatchingArgsIndexes()
27 for (Matcher m : matchers) { in getSuspiciouslyNotMatchingArgsIndexes()
/external/chromium/testing/gmock/
DCHANGES6 * New matchers: Pointwise(), Each().
31 composite matchers.
32 * The new matcher API lets user-defined matchers generate custom
38 * Regular expression matchers on all platforms.
47 * Custom matchers defined using MatcherInterface or MakePolymorphicMatcher()
48 need to be updated after upgrading to Google Mock 1.5.0; matchers defined
65 * New feature: matchers Key(), Pair(), Args<...>(), AllArgs(), IsNull(),
80 * New feature: macros for easily defining new matchers
82 * New feature: more container matchers.
/external/chromium/testing/gmock/test/
Dgmock-internal-utils_test.cc265 tuple<> matchers; in TEST() local
268 EXPECT_TRUE(TupleMatches(matchers, values)); in TEST()
272 tuple<Matcher<int> > matchers(Eq(1)); in TEST() local
276 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
277 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
281 tuple<Matcher<int>, Matcher<char> > matchers(Eq(1), Eq('a')); in TEST() local
287 EXPECT_TRUE(TupleMatches(matchers, values1)); in TEST()
288 EXPECT_FALSE(TupleMatches(matchers, values2)); in TEST()
289 EXPECT_FALSE(TupleMatches(matchers, values3)); in TEST()
290 EXPECT_FALSE(TupleMatches(matchers, values4)); in TEST()
[all …]
/external/littlemock/src/com/google/testing/littlemock/
DLittleMock.java690 ArgumentMatcher[] matchers = checkClearAndGetMatchers(method);
693 … innerVerify(method, matchers, methodCall, proxy, callSite, mHowManyTimes, mOrderCounter);
712 ArgumentMatcher[] matchers = checkClearAndGetMatchers(method);
715 innerStub(method, matchers, methodCall, callSite, mStubbingAction);
782 private void innerStub(Method method, final ArgumentMatcher[] matchers, MethodCall methodCall,
786 if (matchers.length == 0) {
795 MethodCall matchMatchersMethodCall = new MethodCall(method, callSite, matchers) {
797 public boolean argsMatch(Object[] args) { return doMatchersMatch(matchers, args); }
802 setCaptures(matchers, innerArgs);
838 private boolean doMatchersMatch(ArgumentMatcher[] matchers, Object[] args) {
[all …]
/external/mockito/src/org/mockito/
DAdditionalMatchers.java8 import org.mockito.internal.matchers.ArrayEquals;
9 import org.mockito.internal.matchers.CompareEqual;
10 import org.mockito.internal.matchers.EqualsWithDelta;
11 import org.mockito.internal.matchers.Find;
12 import org.mockito.internal.matchers.GreaterOrEqual;
13 import org.mockito.internal.matchers.GreaterThan;
14 import org.mockito.internal.matchers.LessOrEqual;
15 import org.mockito.internal.matchers.LessThan;
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
Dtokenizer.py40 def __init__(self, starting_mode, matchers, default_types): argument
51 self.matchers = matchers
112 for matcher in self.matchers[self.mode]:
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
Djavascripttokenizer.py340 matchers = self.JAVASCRIPT_MATCHERS
343 matchers = copy.deepcopy(matchers)
344 matchers[JavaScriptModes.DOC_COMMENT_MODE] = matchers[
347 tokenizer.Tokenizer.__init__(self, JavaScriptModes.TEXT_MODE, matchers,

12345