/external/guice/core/src/com/google/inject/matcher/ |
H A D | Matcher.java | 24 public interface Matcher<T> { interface 35 Matcher<T> and(Matcher<? super T> other); 41 Matcher<T> or(Matcher<? super T> other);
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/ |
H A D | Matcher.java | 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 { interface in inherits:SelfDescribing 26 * because the caller of the Matcher does not know at runtime what the type is 44 * @param item The item that the Matcher has rejected. 51 * This method simply acts a friendly reminder not to implement Matcher directly and 55 * @see Matcher for reasons why.
|
/external/google-breakpad/src/testing/src/ |
H A D | gmock-matchers.cc | 34 // This file implements Matcher<const string&>, Matcher<string>, and 48 Matcher<const internal::string&>::Matcher(const internal::string& s) { function in class:testing::Matcher 54 Matcher<const internal::string&>::Matcher(const char* s) { function in class:testing::Matcher 59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); } function in class:testing::Matcher 62 Matcher<internal::string>::Matcher(cons function in class:testing::Matcher [all...] |
/external/google-breakpad/src/testing/include/gmock/ |
H A D | gmock-matchers.h | 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 187 // An internal class for implementing Matcher<T>, which will derive 188 // from it. We put functionalities common to all Matcher<T> 245 // A Matcher<T> is a copyable and IMMUTABLE (except by assignment) 247 // implementation of Matcher<T> is just a linked_ptr to const 249 // from Matcher! 251 class Matcher : public internal::MatcherBase<T> { class in namespace:testing 253 // Constructs a null matcher. Needed for storing Matcher object 256 Matcher() {} function in class:testing::Matcher 259 explicit Matcher(const MatcherInterface<T>* impl) function in class:testing::Matcher 271 class GTEST_API_ Matcher<const internal::string&> class in namespace:testing 274 Matcher() {} function in class:testing::Matcher 276 explicit Matcher(const MatcherInterface<const internal::string&>* impl) function in class:testing::Matcher 288 class GTEST_API_ Matcher<internal::string> class in namespace:testing 291 Matcher() {} function in class:testing::Matcher 293 explicit Matcher(const MatcherInterface<internal::string>* impl) function in class:testing::Matcher 2710 Matcher<T>::Matcher(T value) { *this = Eq(value); } function in class:testing::Matcher [all...] |
H A D | gmock-generated-matchers.h | 227 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher; 297 operator Matcher<ArgsTuple>() const { 316 operator Matcher<Container>() const { 327 const Matcher<const Element&> matcher = 344 operator Matcher<Container>() const { 349 const Matcher<const Element&> matchers[] = { 371 operator Matcher<Container>() const { 376 const Matcher<const Element&> matchers[] = { 400 operator Matcher<Container>() const { 405 const Matcher<cons [all...] |
/external/googletest/googlemock/include/gmock/ |
H A D | gmock-matchers.h | 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 248 // An internal class for implementing Matcher<T>, which will derive 249 // from it. We put functionalities common to all Matcher<T> 313 // A Matcher<T> is a copyable and IMMUTABLE (except by assignment) 315 // implementation of Matcher<T> is just a linked_ptr to const 317 // from Matcher! 319 class Matcher : public internal::MatcherBase<T> { class in namespace:testing 321 // Constructs a null matcher. Needed for storing Matcher object 324 explicit Matcher() {} // NOLINT function in class:testing::Matcher 327 explicit Matcher(const MatcherInterface<T>* impl) function in class:testing::Matcher 339 class GTEST_API_ Matcher<const internal::string&> class in namespace:testing 342 Matcher() {} function in class:testing::Matcher 344 explicit Matcher(const MatcherInterface<const internal::string&>* impl) function in class:testing::Matcher 356 class GTEST_API_ Matcher<internal::string> class in namespace:testing 359 Matcher() {} function in class:testing::Matcher 361 explicit Matcher(const MatcherInterface<internal::string>* impl) function in class:testing::Matcher 377 class GTEST_API_ Matcher<const StringPiece&> class in namespace:testing 380 Matcher() {} function in class:testing::Matcher 382 explicit Matcher(const MatcherInterface<const StringPiece&>* impl) function in class:testing::Matcher 397 class GTEST_API_ Matcher<StringPiece> class in namespace:testing 400 Matcher() {} function in class:testing::Matcher 402 explicit Matcher(const MatcherInterface<StringPiece>* impl) function in class:testing::Matcher 3747 Matcher<T>::Matcher(T value) { *this = Eq(value); } function in class:testing::Matcher [all...] |
H A D | gmock-generated-matchers.h | 217 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher; 287 operator Matcher<ArgsTuple>() const { 1300 // Types of Matcher Parameters 1382 class name##Matcher {\ 1410 operator ::testing::Matcher<arg_type>() const {\ 1411 return ::testing::Matcher<arg_type>(\ 1414 name##Matcher() {\ 1417 GTEST_DISALLOW_ASSIGN_(name##Matcher);\ 1419 inline name##Matcher name() {\ 1420 return name##Matcher();\ [all...] |
/external/v8/testing/gmock/include/gmock/ |
H A D | gmock-matchers.h | 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 248 // An internal class for implementing Matcher<T>, which will derive 249 // from it. We put functionalities common to all Matcher<T> 313 // A Matcher<T> is a copyable and IMMUTABLE (except by assignment) 315 // implementation of Matcher<T> is just a linked_ptr to const 317 // from Matcher! 319 class Matcher : public internal::MatcherBase<T> { class in namespace:testing 321 // Constructs a null matcher. Needed for storing Matcher object 324 explicit Matcher() {} // NOLINT function in class:testing::Matcher 327 explicit Matcher(const MatcherInterface<T>* impl) function in class:testing::Matcher 339 class GTEST_API_ Matcher<const internal::string&> class in namespace:testing 342 Matcher() {} function in class:testing::Matcher 344 explicit Matcher(const MatcherInterface<const internal::string&>* impl) function in class:testing::Matcher 356 class GTEST_API_ Matcher<internal::string> class in namespace:testing 359 Matcher() {} function in class:testing::Matcher 361 explicit Matcher(const MatcherInterface<internal::string>* impl) function in class:testing::Matcher 377 class GTEST_API_ Matcher<const StringPiece&> class in namespace:testing 380 Matcher() {} function in class:testing::Matcher 382 explicit Matcher(const MatcherInterface<const StringPiece&>* impl) function in class:testing::Matcher 397 class GTEST_API_ Matcher<StringPiece> class in namespace:testing 400 Matcher() {} function in class:testing::Matcher 402 explicit Matcher(const MatcherInterface<StringPiece>* impl) function in class:testing::Matcher 3747 Matcher<T>::Matcher(T value) { *this = Eq(value); } function in class:testing::Matcher [all...] |
H A D | gmock-generated-matchers.h | 217 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher; 287 operator Matcher<ArgsTuple>() const { 1300 // Types of Matcher Parameters 1382 class name##Matcher {\ 1410 operator ::testing::Matcher<arg_type>() const {\ 1411 return ::testing::Matcher<arg_type>(\ 1414 name##Matcher() {\ 1417 GTEST_DISALLOW_ASSIGN_(name##Matcher);\ 1419 inline name##Matcher name() {\ 1420 return name##Matcher();\ [all...] |
/external/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchFinder.h | 200 /// \brief For each \c Matcher<> a \c MatchCallback that will be called 224 /// \brief Returns the results of matching \p Matcher on \p Node. 227 /// \p Matcher on \p Node and returns the collected results. 236 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context); 240 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, 244 /// \brief Returns the results of matching \p Matcher on the translation unit of 247 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context); 256 /// const Decl *D = selectFirst<Decl>("id", match(Matcher.bind("id"), 281 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, argument 285 Finder.addMatcher(Matcher, 292 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) argument 298 match(MatcherT Matcher, ASTContext &Context) argument [all...] |
H A D | ASTMatchersInternal.h | 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. 245 /// Used by the implementation of Matcher<T> and DynTypedMatcher. 306 template <typename> class Matcher; 308 /// \brief Matcher that works on a \c DynTypedNode. 310 /// It is constructed from a \c Matcher< 468 class Matcher { class in namespace:clang::ast_matchers::internal 471 explicit Matcher(MatcherInterface<T> *Implementation) function in class:clang::ast_matchers::internal::Matcher 478 Matcher(const Matcher<From> &Other, function in class:clang::ast_matchers::internal::Matcher 490 Matcher(const Matcher<TypeT> &Other, function in class:clang::ast_matchers::internal::Matcher 555 explicit Matcher(const DynTypedMatcher &Implementation) function in class:clang::ast_matchers::internal::Matcher 589 matchesFirstInRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument 605 matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument 889 matchesChildOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, TraversalKind Traverse, BindKind Bind) argument 906 matchesDescendantOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, BindKind Bind) argument 923 matchesAncestorOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument [all...] |
/external/clang/include/clang/ASTMatchers/Dynamic/ |
H A D | VariantValue.h | 12 /// Supports all the types required for dynamic Matcher construction. 91 /// the underlying matcher(s) can unambiguously return a Matcher<T>. 98 bool canConstructFrom(const DynTypedMatcher &Matcher, 101 /// \brief Convert \p Matcher the destination type and return it as a new 104 convertMatcher(const DynTypedMatcher &Matcher) const = 0; 139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher); 168 /// \c Matcher<T>. 171 /// \c Matcher<T>. 173 /// overloads can be converted to \c Matcher<T>. If there are more than one 194 /// \brief Return this matcher as a \c Matcher< 315 VariantMatcher *Matcher; member in union:clang::ast_matchers::dynamic::VariantValue::AllValues [all...] |
/external/clang/lib/ASTMatchers/Dynamic/ |
H A D | Registry.cpp | 1 //===--- Registry.cpp - Matcher registry -------------------------===// 497 const auto *Matcher = M.getValue(); local 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>"; 529 OS << "Matcher<" << RetKind [all...] |
H A D | VariantValue.cpp | 26 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str(); 53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, argument 55 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); 56 return Matcher.canConvertTo(NodeKind); 66 // Matcher<T>. 82 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} argument 85 return Matcher; 89 return (Twine("Matcher<") 108 const DynTypedMatcher Matcher; member in class:clang::ast_matchers::dynamic::VariantMatcher::SinglePayload 218 SingleMatcher(const DynTypedMatcher &Matcher) argument 256 VariantValue(const VariantMatcher &Matcher) argument [all...] |
H A D | Marshallers.h | 56 template <class T> struct ArgTypeTraits<ast_matchers::internal::Matcher<T> > { 60 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) { 121 /// \brief Matcher descriptor interface. 191 /// \param Func Matcher construct function. This is the function that 241 Out.push_back(ast_matchers::internal::Matcher<typename TypeList::head>(Poly)); 247 /// There are 2 cases right now: The return value is a Matcher<T> or is a 249 /// For the latter, we instantiate all the possible Matcher<T> of the poly 251 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) { argument 252 return VariantMatcher::SingleMatcher(Matcher); 286 struct BuildReturnTypeVector<ast_matchers::internal::Matcher< [all...] |
/external/clang/unittests/ASTMatchers/ |
H A D | ASTMatchersNarrowingTest.cpp | 259 auto VD = internal::Matcher<VarDecl>(Name).dynCastTo<Decl>(); 260 auto RD = internal::Matcher<RecordDecl>(Name).dynCastTo<Decl>(); 546 TEST(Matcher, BindMatchedNodes) { 570 TEST(Matcher, BindTheSameNameInAlternatives) { 587 TEST(Matcher, BindsIDForMemoizedResults) { 612 TEST(Matcher, HasOperatorNameForOverloadedOperatorCall) { 640 TEST(Matcher, NestedOverloadedOperatorCalls) { 658 TEST(Matcher, VarDecl_Storage) { 670 TEST(Matcher, VarDecl_StorageDuration) { 693 TEST(Matcher, FindsVarDeclInFunctionParamete 1674 auto Matcher = binaryOperator(unless(isInTemplateInstantiation())); local [all...] |
H A D | ASTMatchersNodeTest.cpp | 172 DeclarationMatcher Matcher = enumConstantDecl(hasName("A")); local 173 EXPECT_TRUE(matches("enum X{ A };", Matcher)); 174 EXPECT_TRUE(notMatches("enum X{ B };", Matcher)); 175 EXPECT_TRUE(notMatches("enum X {};", Matcher)); 178 TEST(Matcher, UnresolvedLookupExpr) { 192 TEST(Matcher, Call) { 194 // Matcher<Decl>, too? 239 TEST(Matcher, Lambda) { 244 TEST(Matcher, ForRange) { 252 TEST(Matcher, SubstNonTypeTemplatePar 1391 NestedNameSpecifierMatcher Matcher = nestedNameSpecifier( local 1400 NestedNameSpecifierMatcher Matcher = nestedNameSpecifier( local [all...] |
/external/clang/unittests/ASTMatchers/Dynamic/ |
H A D | ParserTest.cpp | 32 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt()); 47 const ExpectedMatchersTy::value_type *Matcher = variable 49 return reinterpret_cast<MatcherCtor>(Matcher); 57 const ExpectedMatchersTy::value_type *Matcher = variable 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; 178 Matcher<Decl> M = VarDecl->unconditionalConvertTo<Decl>(); 212 "(Expected = Matcher<Exp [all...] |
/external/googletest/googlemock/src/ |
H A D | gmock-matchers.cc | 34 // This file implements Matcher<const string&>, Matcher<string>, and 48 Matcher<const internal::string&>::Matcher(const internal::string& s) { function in class:testing::Matcher 54 Matcher<const internal::string&>::Matcher(const char* s) { function in class:testing::Matcher 59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); } function in class:testing::Matcher 62 Matcher<internal::string>::Matcher(cons function in class:testing::Matcher 69 Matcher<const StringPiece&>::Matcher(const internal::string& s) { function in class:testing::Matcher 75 Matcher<const StringPiece&>::Matcher(const char* s) { function in class:testing::Matcher 81 Matcher<const StringPiece&>::Matcher(StringPiece s) { function in class:testing::Matcher 86 Matcher<StringPiece>::Matcher(const internal::string& s) { function in class:testing::Matcher 91 Matcher<StringPiece>::Matcher(const char* s) { function in class:testing::Matcher 96 Matcher<StringPiece>::Matcher(StringPiece s) { function in class:testing::Matcher [all...] |
/external/llvm/utils/TableGen/ |
H A D | DAGISelMatcherEmitter.cpp | 1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===// 59 unsigned EmitMatcherList(const Matcher *N, unsigned Indent, 64 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS); 66 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 156 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 161 case Matcher::Scope: { 223 case Matcher::RecordNode: 232 case Matcher::RecordChild: 242 case Matcher::RecordMemRef: 246 case Matcher 479 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); local [all...] |
/external/v8/testing/gmock/src/ |
H A D | gmock-matchers.cc | 34 // This file implements Matcher<const string&>, Matcher<string>, and 48 Matcher<const internal::string&>::Matcher(const internal::string& s) { function in class:testing::Matcher 54 Matcher<const internal::string&>::Matcher(const char* s) { function in class:testing::Matcher 59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); } function in class:testing::Matcher 62 Matcher<internal::string>::Matcher(cons function in class:testing::Matcher 69 Matcher<const StringPiece&>::Matcher(const internal::string& s) { function in class:testing::Matcher 75 Matcher<const StringPiece&>::Matcher(const char* s) { function in class:testing::Matcher 81 Matcher<const StringPiece&>::Matcher(StringPiece s) { function in class:testing::Matcher 86 Matcher<StringPiece>::Matcher(const internal::string& s) { function in class:testing::Matcher 91 Matcher<StringPiece>::Matcher(const char* s) { function in class:testing::Matcher 96 Matcher<StringPiece>::Matcher(StringPiece s) { function in class:testing::Matcher [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
H A D | TrieMap.java | 95 abstract public Matcher<V> getMatcher(); 97 public abstract static class Matcher<V> { class in class:TrieMap 173 public TrieMap.Matcher<V> getMatcher() { 214 public class BytesMatcher extends Matcher<V> { 359 public TrieMap.Matcher<V> getMatcher() { 398 public class CharsMatcher extends Matcher<V> {
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | TrieMap.java | 94 abstract public Matcher<V> getMatcher(); 96 public abstract static class Matcher<V> { class in class:TrieMap 172 public TrieMap.Matcher<V> getMatcher() { 213 public class BytesMatcher extends Matcher<V> { 358 public TrieMap.Matcher<V> getMatcher() { 397 public class CharsMatcher extends Matcher<V> {
|
/external/swiftshader/third_party/LLVM/utils/TableGen/ |
H A D | DAGISelMatcherEmitter.cpp | 1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===// 54 unsigned EmitMatcherList(const Matcher *N, unsigned Indent, 59 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS); 61 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 138 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 143 case Matcher::Scope: { 205 case Matcher::RecordNode: 214 case Matcher::RecordChild: 224 case Matcher::RecordMemRef: 228 case Matcher 437 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); local [all...] |
/external/fmtlib/test/gmock/ |
H A D | gmock.h | 275 class Matcher; 292 // MatcherTuple<T>::type is a tuple type where each field is a Matcher 304 typedef ::std::tr1::tuple<Matcher<A1> > type; 309 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type; 314 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type; 319 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A 4950 class Matcher : public internal::MatcherBase<T> { class in namespace:testing 4955 Matcher() {} function in class:testing::Matcher 4958 explicit Matcher(const MatcherInterface<T>* impl) function in class:testing::Matcher 4970 class GTEST_API_ Matcher<const internal::string&> class in namespace:testing 4973 Matcher() {} function in class:testing::Matcher 4975 explicit Matcher(const MatcherInterface<const internal::string&>* impl) function in class:testing::Matcher 4987 class GTEST_API_ Matcher<internal::string> class in namespace:testing 4990 Matcher() {} function in class:testing::Matcher 4992 explicit Matcher(const MatcherInterface<internal::string>* impl) function in class:testing::Matcher 5008 class GTEST_API_ Matcher<const StringPiece&> class in namespace:testing 5011 Matcher() {} function in class:testing::Matcher 5013 explicit Matcher(const MatcherInterface<const StringPiece&>* impl) function in class:testing::Matcher 5028 class GTEST_API_ Matcher<StringPiece> class in namespace:testing 5031 Matcher() {} function in class:testing::Matcher 5033 explicit Matcher(const MatcherInterface<StringPiece>* impl) function in class:testing::Matcher 8086 Matcher<T>::Matcher(T value) { *this = Eq(value); } function in class:testing::Matcher [all...] |