HomeSort by relevance Sort by last modified time
    Searched defs:Matcher (Results 1 - 25 of 189) sorted by null

1 2 3 4 5 6 7 8

  /external/google-breakpad/src/testing/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/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
Matcher.java 5 * A matcher over acceptable values.
6 * 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.
20 public interface Matcher<T> extends SelfDescribing {
23 * Evaluates the matcher for argument <var>item</var>.
26 * because the caller of the Matcher does not know at runtime what the type is
30 * @param item the object against which the matcher is evaluated.
38 * Generate a description of why the matcher has not accepted the item
    [all...]
  /external/guice/core/src/com/google/inject/matcher/
Matcher.java 17 package com.google.inject.matcher;
24 public interface Matcher<T> {
32 * Returns a new matcher which returns {@code true} if both this and the
33 * given matcher return {@code true}.
35 Matcher<T> and(Matcher<? super T> other);
38 * Returns a new matcher which returns {@code true} if either this or the
39 * given matcher return {@code true}.
41 Matcher<T> or(Matcher<? super T> other)
    [all...]
  /external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/
PrivateEmptyNoArgConstructorFilter.java 29 && new Matcher().match(methodNode, superClassName)) {
35 private static class Matcher extends AbstractMatcher {
SynchronizedFilter.java 33 final AbstractInsnNode to = new Matcher(tryCatch.handler).match();
41 private static class Matcher extends AbstractMatcher {
44 private Matcher(final AbstractInsnNode start) {
TryWithResourcesJavacFilter.java 30 final Matcher matcher = new Matcher(output); local
33 for (Matcher.JavacPattern p : Matcher.JavacPattern.values()) {
34 matcher.start(t.handler);
35 if (matcher.matchJavac(p)) {
89 static class Matcher extends AbstractMatcher {
96 Matcher(final IFilterOutput output) {
  /frameworks/base/tools/aapt2/test/
Common.h 224 operator ::testing::Matcher<T>() const {
225 return ::testing::Matcher<T>(new Impl<T, std::is_pointer<T>::value>(expected_));
  /external/google-breakpad/src/testing/include/gmock/
gmock-matchers.h 55 // To implement a matcher Foo for type T, define:
58 // 2. a factory function that creates a Matcher<T> object from a
62 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
64 // ownership management as Matcher objects can now be copied like
68 // used by a matcher to explain why a value matches or doesn't match.
94 // the match result. A matcher's MatchAndExplain() method can use
108 // The implementation of a matcher.
114 // Returns true iff the matcher matches x; also explains the match
117 // example, the MatchAndExplain() method of the Pointee(...) matcher
120 // You should override this method when defining a new matcher
642 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1525 const Matcher<const T&> matcher = MatcherCast<const T&>(matcher_); local
    [all...]
gmock-generated-matchers.h 217 // Implements the Args() matcher.
227 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher;
297 operator Matcher<ArgsTuple>() const {
316 operator Matcher<Container>() const {
327 const Matcher<const Element&> matcher = local
329 return MakeMatcher(new ElementsAreMatcherImpl<Container>(&matcher, 1));
344 operator Matcher<Container>() const {
349 const Matcher<const Element&> matchers[] = {
371 operator Matcher<Container>() const
    [all...]
  /external/googletest/googlemock/include/gmock/
gmock-matchers.h 61 // To implement a matcher Foo for type T, define:
64 // 2. a factory function that creates a Matcher<T> object from a
68 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
70 // ownership management as Matcher objects can now be copied like
74 // used by a matcher to explain why a value matches or doesn't match.
101 // the match result. A matcher's MatchAndExplain() method can use
116 // matcher.
121 // Describes this matcher to an ostream. The function should print
123 // matcher should have. The subject of the verb phrase is the value
125 // matcher prints "is greater than 7"
751 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1854 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_); local
    [all...]
  /external/v8/testing/gmock/include/gmock/
gmock-matchers.h 61 // To implement a matcher Foo for type T, define:
64 // 2. a factory function that creates a Matcher<T> object from a
68 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
70 // ownership management as Matcher objects can now be copied like
74 // used by a matcher to explain why a value matches or doesn't match.
101 // the match result. A matcher's MatchAndExplain() method can use
116 // matcher.
121 // Describes this matcher to an ostream. The function should print
123 // matcher should have. The subject of the verb phrase is the value
125 // matcher prints "is greater than 7"
751 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1854 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_); local
    [all...]
  /external/clang/unittests/ASTMatchers/Dynamic/
ParserTest.cpp 29 // Optimizations on the matcher framework make simple matchers like
30 // 'stmt()' to be all the same matcher.
32 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
47 const ExpectedMatchersTy::value_type *Matcher =
49 return reinterpret_cast<MatcherCtor>(Matcher);
57 const ExpectedMatchersTy::value_type *Matcher =
59 MatcherInfo ToStore = { Matcher->first, NameRange, Args, BindID };
61 return VariantMatcher::SingleMatcher(Matcher->second);
74 typedef std::map<std::string, ast_matchers::internal::Matcher<Stmt> >
161 using ast_matchers::internal::Matcher;
    [all...]
  /external/googletest/googlemock/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/v8/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...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /external/clang/include/clang/ASTMatchers/
ASTMatchersInternal.h 10 // Implements the base layer of the matcher framework.
12 // Matchers are methods that return a Matcher<T> which provides a method
19 // 1. A function Matcher<T> MatcherName(<arguments>) which returns a Matcher<T>
21 // on the arguments. Matcher<T>s form an implicit reverse hierarchy
22 // to clang's AST class hierarchy, meaning that you can use a Matcher<Base>
23 // everywhere a Matcher<Derived> is required.
26 // The matcher functions are defined in ASTMatchers.h. To make it possible
27 // to implement both the matcher function and the implementation of the matcher
    [all...]
  /external/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
42 /// \brief Constructor for non-matcher types.
45 /// \brief Constructor for matcher types.
79 /// \brief A variant matcher object.
84 /// overloads of the matcher. \c VariantMatcher knows how to select the
86 /// To get a real matcher object out of a \c VariantMatcher you can do:
87 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
88 /// to decide which matcher to return. Eg. it contains only a single
89 /// matcher, or a polymorphic one with only one overload.
91 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /external/clang/lib/ASTMatchers/Dynamic/
Registry.cpp 1 //===--- Registry.cpp - Matcher registry -------------------------===//
472 // Starting with the above seed of acceptable top-level matcher types, compute
497 const auto *Matcher = M.getValue();
501 unsigned NumArgs = Matcher->isVariadic() ? 1 : Matcher->getNumArgs();
502 bool IsPolymorphic = Matcher->isPolymorphic();
510 if (Matcher->isConvertibleTo(Kind.getMatcherKind(), &Specificity,
516 Matcher->getArgKinds(Kind.getMatcherKind(), Arg, ArgsKinds[Arg]);
527 OS << "Matcher<T> " << Name << "(Matcher<T>"
    [all...]

Completed in 722 milliseconds

1 2 3 4 5 6 7 8