Home
last modified time | relevance | path

Searched refs:matcher (Results 1 – 25 of 64) sorted by relevance

123

/freebsd/contrib/googletest/googletest/include/gtest/
H A Dgtest-death-test.h173 #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)
/freebsd/contrib/googletest/docs/reference/
H A Dmatchers.md3 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…
57 `non_copyable_value` is not changed afterwards, or the meaning of your matcher
60 `IsTrue` and `IsFalse` are useful when you need to use a matcher, or for types
123 …(e)` | `argument` contains an element that matches `e`, which can be either a value or a matcher. |
124 …, which can be either a value or a matcher, and the number of matches is `n`, which can be either …
125 …ment` is a container where *every* element matches `e`, which can be either a value or a matcher. |
126 …` has `n + 1` elements, where the *i*-th element matches `ei`, which can be a value or a matcher. |
131 …nt in `argument`, the i-th element in `container`) match `m`, which is a matcher on 2-tuples. E.g.…
[all …]
H A Dassertions.md81 `EXPECT_THAT(`*`value`*`,`*`matcher`*`)` \
82 `ASSERT_THAT(`*`value`*`,`*`matcher`*`)`
84 Verifies that *`value`* matches the [matcher](matchers.md) *`matcher`*.
562 `EXPECT_DEATH(`*`statement`*`,`*`matcher`*`)` \
563 `ASSERT_DEATH(`*`statement`*`,`*`matcher`*`)`
566 status and produces `stderr` output that matches *`matcher`*.
568 The parameter *`matcher`* is either a [matcher](matchers.md) for a `const
571 string *`s`* (with no matcher) is treated as
584 `EXPECT_DEATH_IF_SUPPORTED(`*`statement`*`,`*`matcher`*`)` \
585 `ASSERT_DEATH_IF_SUPPORTED(`*`statement`*`,`*`matcher`*`)`
[all …]
H A Dmocking.md72 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 DFormattersContainer.h154 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()
207 bool GetExact(TypeMatcher matcher, ValueSP &entry) { in GetExact() argument
210 if (pos.first.CreatedBySameMatchString(matcher)) { in GetExact()
258 ForEach([&request](const TypeMatcher &matcher, const ValueSP &value) { in AutoComplete()
259 request.TryCompleteCurrentArg(matcher.GetMatchString().GetStringRef()); in AutoComplete()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-matchers.h460 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; } in Cast() argument
514 inline Matcher<T> MatcherCast(const M& matcher) { in MatcherCast() argument
515 return internal::MatcherCastImpl<T, M>::Cast(matcher); in MatcherCast()
535 inline Matcher<T> SafeMatcherCast(const Matcher<U>& matcher) { in SafeMatcherCast() argument
553 return MatcherCast<T>(matcher); in SafeMatcherCast()
588 bool MatchPrintAndExplain(Value& value, const Matcher<T>& matcher, in MatchPrintAndExplain() argument
593 return matcher.Matches(value); in MatchPrintAndExplain()
597 const bool match = matcher.MatchAndExplain(value, &inner_listener); in MatchPrintAndExplain()
638 typename std::tuple_element<N - 1, MatcherTuple>::type matcher = in ExplainMatchFailuresTo() local
643 if (!matcher.MatchAndExplain(value, &listener)) { in ExplainMatchFailuresTo()
[all …]
/freebsd/contrib/googletest/googletest/src/
H A Dgtest-death-test.cc389 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 Dgmock-matchers-misc_test.cc88 Matcher<int> matcher = Address(_); in TEST() local
89 EXPECT_EQ("has address that is anything", Describe(matcher)); in TEST()
91 DescribeNegation(matcher)); in TEST()
1699 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local
1701 matcher.DescribeTo(&ss); in TEST()
1707 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local
1709 EXPECT_TRUE(matcher.MatchAndExplain( in TEST()
1715 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local
1717 EXPECT_FALSE(matcher.MatchAndExplain( in TEST()
1724 Matcher<std::function<void()>> matcher = Throws<std::runtime_error>(); in TEST() local
[all …]
H A Dgmock-matchers-containers_test.cc933 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(std::string("foo"))); in TEST() local
935 EXPECT_TRUE(matcher.Matches(1)); in TEST()
936 EXPECT_FALSE(matcher.Matches(2)); in TEST()
941 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); in TEST() local
946 Describe(matcher)); in TEST()
950 DescribeNegation(matcher)); in TEST()
955 Matcher<int> matcher = in TEST() local
958 EXPECT_EQ("whose string conversion is equal to \"foo\"", Describe(matcher)); in TEST()
960 DescribeNegation(matcher)); in TEST()
967 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); in TEST_P() local
[all …]
H A Dgmock-matchers-comparisons_test.cc2254 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST() local
2257 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher)); in TEST()
2259 DescribeNegation(matcher)); in TEST()
2263 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST() local
2265 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL")); in TEST()
2267 EXPECT_TRUE(matcher.Matches(&derived)); in TEST()
2268 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to ")); in TEST()
/freebsd/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h77 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/diff/lib/
H A Dexclude.c160 int (*matcher) (char const *, char const *, int) = in excluded_filename() local
164 bool matched = ((*matcher) (pattern, f, options) == 0); in excluded_filename()
170 matched = ((*matcher) (pattern, p + 1, options) == 0); in excluded_filename()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVE.td36 // Use both VE register name matcher to accept "S0~S63" register names
37 // and default register matcher to accept other registeres.
/freebsd/contrib/googletest/docs/
H A Dgmock_cook_book.md874 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 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/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp574 static Matcher matcher() { in matcher() function in __anon8edba8be0511::IncrementGadget
614 static Matcher matcher() { in matcher() function in __anon8edba8be0511::DecrementGadget
653 static Matcher matcher() { in matcher() function in __anon8edba8be0511::ArraySubscriptGadget
704 static Matcher matcher() { in matcher() function in __anon8edba8be0511::PointerArithmeticGadget
753 static Matcher matcher() { in matcher() function in __anon8edba8be0511::SpanTwoParamConstructorGadget
802 static Matcher matcher() { in matcher() function in __anon8edba8be0511::PointerInitGadget
850 static Matcher matcher() { in matcher() function in __anon8edba8be0511::PtrToPtrAssignmentGadget
899 static Matcher matcher() { in matcher() function in __anon8edba8be0511::CArrayToPtrAssignmentGadget
941 static Matcher matcher() { in matcher() function in __anon8edba8be0511::UnsafeBufferUsageAttrGadget
973 static Matcher matcher() { in matcher() function in __anon8edba8be0511::UnsafeBufferUsageCtorAttrGadget
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/GlobalISel/
H A DTarget.td20 // GlobalISel matcher.
29 // Defines a matcher for complex operands. This is analogous to ComplexPattern
/freebsd/lib/libc/regex/
H A Dengine.c47 #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 Dcatch.hpp2758 #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 Dengine.c46 #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 DDAGCombiner.cpp11506 MatchContextClass matcher(DAG, TLI, N); in foldBoolSelectToLogic() local
11514 return matcher.getNode(ISD::OR, DL, VT, Cond, DAG.getFreeze(F)); in foldBoolSelectToLogic()
11519 return matcher.getNode(ISD::AND, DL, VT, Cond, DAG.getFreeze(T)); in foldBoolSelectToLogic()
11524 matcher.getNode(ISD::XOR, DL, VT, Cond, DAG.getAllOnesConstant(DL, VT)); in foldBoolSelectToLogic()
11525 return matcher.getNode(ISD::OR, DL, VT, NotCond, DAG.getFreeze(T)); in foldBoolSelectToLogic()
11531 matcher.getNode(ISD::XOR, DL, VT, Cond, DAG.getAllOnesConstant(DL, VT)); in foldBoolSelectToLogic()
11532 return matcher.getNode(ISD::AND, DL, VT, NotCond, DAG.getFreeze(F)); in foldBoolSelectToLogic()
15868 MatchContextClass matcher(DAG, TLI, N); in visitFADDForFMACombine() local
15881 (!LegalOperations || matcher.isOperationLegalOrCustom(ISD::FMA, VT)); in visitFADDForFMACombine()
15908 return matcher.match(N, ISD::FMA) || matcher.match(N, ISD::FMAD); in visitFADDForFMACombine()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyRegisterInfo.td38 // These are also used a "types" in the generated assembly matcher.
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc46 #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 DTarget.td351 // the assembly matcher will provide a function to map from diagnostic types
747 /// two-operand matcher inst-alias for a three operand instruction.
821 /// matcher, this is true. Targets should set this by inheriting their
826 /// as alternative condition string used for assembler matcher. Must be used
842 /// in diagnostics such as missing feature errors in the asm matcher.
929 /// specific parser can create and the assembly matcher may need to distinguish.
1555 // written register name matcher
1559 // matcher.
1579 // When 0, the assembly matcher reports an error for one encoding or operand
1581 // When 1, the assembly matcher returns a list of encodings that were close
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMSA.txt5 optimisation, reduce the size of the ISel matcher, and reduce repetition in
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DEXPInstructions.td166 // FIXME: The generated DAG matcher seems to have strange behavior

123