| /freebsd/contrib/googletest/googletest/include/gtest/ |
| H A D | gtest-death-test.h | 173 #define ASSERT_EXIT(statement, predicate, matcher) \ argument 174 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_FATAL_FAILURE_) 178 #define EXPECT_EXIT(statement, predicate, matcher) \ argument 179 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_) 184 #define ASSERT_DEATH(statement, matcher) \ argument 185 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher) 189 #define EXPECT_DEATH(statement, matcher) \ argument 190 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
|
| H A D | gtest-matchers.h | 599 std::ostream& operator<<(std::ostream& os, const Matcher<T>& matcher) { 600 matcher.DescribeTo(&os);
|
| /freebsd/contrib/googletest/docs/reference/ |
| H A D | matchers.md | 3 A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or 8 | `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. | 9 | `ASSERT_THAT(actual_value, matcher)` | The same as `EXPECT_THAT(actual_value, matcher)`, except t… 59 `non_copyable_value` is not changed afterwards, or the meaning of your matcher 62 `IsTrue` and `IsFalse` are useful when you need to use a matcher, or for types 125 …(e)` | `argument` contains an element that matches `e`, which can be either a value or a matcher. | 126 …, which can be either a value or a matcher, and the number of matches is `n`, which can be either … 127 …ment` is a container where *every* element matches `e`, which can be either a value or a matcher. | 128 …` has `n + 1` elements, where the *i*-th element matches `ei`, which can be a value or a matcher. | 133 …nt in `argument`, the i-th element in `container`) match `m`, which is a matcher on 2-tuples. E.g.… [all …]
|
| H A D | assertions.md | 81 `EXPECT_THAT(`*`value`*`,`*`matcher`*`)` \ 82 `ASSERT_THAT(`*`value`*`,`*`matcher`*`)` 84 Verifies that *`value`* matches the [matcher](matchers.md) *`matcher`*. 569 `EXPECT_DEATH(`*`statement`*`,`*`matcher`*`)` \ 570 `ASSERT_DEATH(`*`statement`*`,`*`matcher`*`)` 573 status and produces `stderr` output that matches *`matcher`*. 575 The parameter *`matcher`* is either a [matcher](matchers.md) for a `const 578 string *`s`* (with no matcher) is treated as 591 `EXPECT_DEATH_IF_SUPPORTED(`*`statement`*`,`*`matcher`*`)` \ 592 `ASSERT_DEATH_IF_SUPPORTED(`*`statement`*`,`*`matcher`*`)` [all …]
|
| H A D | mocking.md | 72 each argument's matcher were a [wildcard matcher (`_`)](matchers.md#wildcard). 96 as a whole match the multi-argument matcher *`multi_argument_matcher`*. 98 GoogleTest passes all of the arguments as one tuple into the matcher. The 99 parameter *`multi_argument_matcher`* must thus be a matcher of type 116 matcher above. See [Multi-argument Matchers](matchers.md#MultiArgMatchers). 334 each argument's matcher were a [wildcard matcher (`_`)](matchers.md#wildcard). 353 whole match the multi-argument matcher *`multi_argument_matcher`*. 355 GoogleTest passes all of the arguments as one tuple into the matcher. The 356 parameter *`multi_argument_matcher`* must thus be a matcher of type 375 matcher above. See [Multi-argument Matchers](matchers.md#MultiArgMatchers).
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/DataFormatters/ |
| H A D | FormattersContainer.h | 154 void Add(TypeMatcher matcher, const ValueSP &entry) { in Add() argument 161 Delete(matcher); in Add() 162 m_map.emplace_back(std::move(matcher), std::move(entry)); in Add() 167 bool Delete(TypeMatcher matcher) { in Delete() argument 170 if (iter->first.CreatedBySameMatchString(matcher)) { in Delete() 205 bool GetExact(TypeMatcher matcher, ValueSP &entry) { in GetExact() argument 208 if (pos.first.CreatedBySameMatchString(matcher)) { in GetExact() 256 ForEach([&request](const TypeMatcher &matcher, const ValueSP &value) { in AutoComplete() 257 request.TryCompleteCurrentArg(matcher.GetMatchString().GetStringRef()); in AutoComplete()
|
| /freebsd/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-matchers.h | 469 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast() argument 523 inline Matcher<T> MatcherCast(const M& matcher) { in MatcherCast() argument 524 return internal::MatcherCastImpl<T, M>::Cast(matcher); in MatcherCast() 545 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() argument 560 return MatcherCast<T>(matcher); in SafeMatcherCast() 600 bool MatchPrintAndExplain(Value& value, const Matcher<T>& matcher, in MatchPrintAndExplain() argument 605 return matcher.Matches(value); in MatchPrintAndExplain() 609 const bool match = matcher.MatchAndExplain(value, &inner_listener); in MatchPrintAndExplain() 650 typename std::tuple_element<N - 1, MatcherTuple>::type matcher = in ExplainMatchFailuresTo() local 655 if (!matcher.MatchAndExplain(value, &listener)) { in ExplainMatchFailuresTo() [all …]
|
| /freebsd/contrib/googletest/googletest/src/ |
| H A D | gtest-death-test.cc | 389 Matcher<const std::string&> matcher, const char* file, in Create() argument 392 statement, std::move(matcher), file, line, test); in Create() 408 DeathTestImpl(const char* a_statement, Matcher<const std::string&> matcher) in DeathTestImpl() argument 410 matcher_(std::move(matcher)), in DeathTestImpl() 675 WindowsDeathTest(const char* a_statement, Matcher<const std::string&> matcher, in WindowsDeathTest() argument 677 : DeathTestImpl(a_statement, std::move(matcher)), in WindowsDeathTest() 835 FuchsiaDeathTest(const char* a_statement, Matcher<const std::string&> matcher, in FuchsiaDeathTest() argument 837 : DeathTestImpl(a_statement, std::move(matcher)), in FuchsiaDeathTest() 1058 ForkingDeathTest(const char* statement, Matcher<const std::string&> matcher); 1073 Matcher<const std::string&> matcher) in ForkingDeathTest() argument [all …]
|
| /freebsd/contrib/googletest/googlemock/test/ |
| H A D | gmock-matchers-misc_test.cc | 89 Matcher<int> matcher = Address(_); in TEST() local 90 EXPECT_EQ("has address that is anything", Describe(matcher)); in TEST() 92 DescribeNegation(matcher)); in TEST() 1758 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local 1760 matcher.DescribeTo(&ss); in TEST() 1766 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local 1768 EXPECT_TRUE(matcher.MatchAndExplain( in TEST() 1774 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local 1776 EXPECT_FALSE(matcher.MatchAndExplain( in TEST() 1783 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local [all …]
|
| H A D | gmock-matchers-containers_test.cc | 934 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(std::string("foo"))); in TEST() local 936 EXPECT_TRUE(matcher.Matches(1)); in TEST() 937 EXPECT_FALSE(matcher.Matches(2)); in TEST() 942 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); in TEST() local 947 Describe(matcher)); in TEST() 951 DescribeNegation(matcher)); in TEST() 956 Matcher<int> matcher = in TEST() local 959 EXPECT_EQ("whose string conversion is equal to \"foo\"", Describe(matcher)); in TEST() 961 DescribeNegation(matcher)); in TEST() 968 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); in TEST_P() local [all …]
|
| H A D | gmock-matchers-comparisons_test.cc | 2310 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST() local 2313 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher)); in TEST() 2315 DescribeNegation(matcher)); in TEST() 2319 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST() local 2321 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL")); in TEST() 2323 EXPECT_TRUE(matcher.Matches(&derived)); in TEST() 2324 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to ")); in TEST() 2433 Matcher<int> matcher = in TEST() local 2435 EXPECT_TRUE(matcher.Matches(1)); in TEST() 2438 Matcher<int> all_of_matcher = AllOf(matcher, matcher); in TEST() [all …]
|
| /freebsd/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-death-test-internal.h | 77 Matcher<const ::std::string&> matcher) { in MakeDeathTestMatcher() 78 return matcher; in MakeDeathTestMatcher() 109 static bool Create(const char* statement, Matcher<const std::string&> matcher, 179 Matcher<const std::string&> matcher, const char* file, in GTEST_DISABLE_MSC_WARNINGS_POP_() 186 bool Create(const char* statement, Matcher<const std::string&> matcher,
|
| /freebsd/contrib/googletest/docs/ |
| H A D | gmock_cook_book.md | 874 A frequently used matcher is `_`, which matches anything: 920 mistake if you use a matcher of the wrong type (for example, if you use `Eq(5)` 924 some slack. One example is that you have a matcher for `long` and the argument 928 giving it to the matcher. 931 casts a matcher `m` to type `Matcher<T>`. To ensure safety, gMock checks that 940 underlying matcher may be interested in the address of the `U` value). 1001 different argument types, you may need to specify the exact type of a matcher, 1002 either by wrapping your matcher in `Matcher<type>()`, or using a matcher whose 1070 The expression inside `With()` must be a matcher of type `Matcher<std::tuple<A1, 1094 including the `Lt()` matcher above. See [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VE.td | 36 // Use both VE register name matcher to accept "S0~S63" register names 37 // and default register matcher to accept other registeres.
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/ |
| H A D | Target.td | 20 // GlobalISel matcher. 29 // Defines a matcher for complex operands. This is analogous to ComplexPattern
|
| /freebsd/lib/libc/regex/ |
| H A D | engine.c | 47 #define matcher smatcher macro 58 #define matcher lmatcher macro 69 #define matcher mmatcher macro 103 static int matcher(struct re_guts *g, const char *string, size_t nmatch, regmatch_t pmatch[], int e… 186 matcher(struct re_guts *g, in matcher() function 1206 #undef matcher
|
| /freebsd/contrib/bsnmp/tests/ |
| H A D | catch.hpp | 2758 #define INTERNAL_CATCH_THROWS_STR_MATCHES( macroName, resultDisposition, matcher, ... ) \ argument 2760 …NFO, CATCH_INTERNAL_STRINGIFY(__VA_ARGS__) ", " CATCH_INTERNAL_STRINGIFY(matcher), resultDispositi… 2767 … Catch::handleExceptionMatchExpr( catchAssertionHandler, matcher, #matcher##_catch_sr ); \ 3244 for( auto matcher : m_matchers ) { in match() local 3245 if (!matcher->match(arg)) in match() 3255 for( auto matcher : m_matchers ) { in describe() local 3260 description += matcher->toString(); in describe() 3277 for( auto matcher : m_matchers ) { in match() local 3278 if (matcher->match(arg)) in match() 3288 for( auto matcher : m_matchers ) { in describe() local [all …]
|
| /freebsd/contrib/nvi/regex/ |
| H A D | engine.c | 46 #define matcher smatcher macro 57 #define matcher lmatcher macro 91 static int matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, regmatch_t pmatch[], in… 132 matcher(struct re_guts *g, const RCHAR_T *string, size_t nmatch, in matcher() function 1028 #undef matcher
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | DAGCombiner.cpp | 12039 MatchContextClass matcher(DAG, TLI, N); in foldBoolSelectToLogic() local 12047 return matcher.getNode(ISD::OR, DL, VT, Cond, DAG.getFreeze(F)); in foldBoolSelectToLogic() 12052 return matcher.getNode(ISD::AND, DL, VT, Cond, DAG.getFreeze(T)); in foldBoolSelectToLogic() 12057 matcher.getNode(ISD::XOR, DL, VT, Cond, DAG.getAllOnesConstant(DL, VT)); in foldBoolSelectToLogic() 12058 return matcher.getNode(ISD::OR, DL, VT, NotCond, DAG.getFreeze(T)); in foldBoolSelectToLogic() 12064 matcher.getNode(ISD::XOR, DL, VT, Cond, DAG.getAllOnesConstant(DL, VT)); in foldBoolSelectToLogic() 12065 return matcher.getNode(ISD::AND, DL, VT, NotCond, DAG.getFreeze(F)); in foldBoolSelectToLogic() 16872 MatchContextClass matcher(DAG, TLI, N); in visitFADDForFMACombine() local 16884 (!LegalOperations || matcher.isOperationLegalOrCustom(ISD::FMA, VT)) && in visitFADDForFMACombine() 16912 return matcher.match(N, ISD::FMA) || matcher.match(N, ISD::FMAD); in visitFADDForFMACombine() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyRegisterInfo.td | 38 // These are also used a "types" in the generated assembly matcher.
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | regengine.inc | 46 #define matcher smatcher 59 #define matcher lmatcher 89 static int matcher(struct re_guts *, const char *, size_t, 131 - matcher - the actual matching engine 134 matcher(struct re_guts *g, const char *string, size_t nmatch, 1089 #undef matcher
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | Target.td | 356 // the assembly matcher will provide a function to map from diagnostic types 752 /// two-operand matcher inst-alias for a three operand instruction. 826 /// matcher, this is true. Targets should set this by inheriting their 831 /// as alternative condition string used for assembler matcher. Must be used 847 /// in diagnostics such as missing feature errors in the asm matcher. 934 /// specific parser can create and the assembly matcher may need to distinguish. 1577 // written register name matcher 1581 // matcher. 1601 // When 0, the assembly matcher reports an error for one encoding or operand 1603 // When 1, the assembly matcher returns a list of encodings that were close [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MSA.txt | 5 optimisation, reduce the size of the ISel matcher, and reduce repetition in
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | EXPInstructions.td | 167 // FIXME: The generated DAG matcher seems to have strange behavior
|
| /freebsd/contrib/googletest/ |
| H A D | BUILD.bazel | 162 # expects it to crash and inspects its logs with the given matcher,
|