Searched refs:MATCHER (Results 1 – 11 of 11) sorted by relevance
| /freebsd-13.1/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-more-matchers.h | 61 MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") { 73 MATCHER(IsTrue, negation ? "is false" : "is true") { 81 MATCHER(IsFalse, negation ? "is true" : "is false") {
|
| H A D | gmock-generated-matchers.h.pump | 382 // The MATCHER* family of macros can be used in a namespace scope to 390 // MATCHER(name, description_string) { statements; } 399 // MATCHER() is usually defined in a header file shared by multiple 407 // MATCHER(IsEven, "") { return (arg % 2) == 0; } 477 // The last argument to MATCHER*() is a string-typed expression. The 578 // approaches require more work than the MATCHER* macros, but also 585 // MATCHER*() can only be used in a namespace scope. The reason is 588 // Once that's done, we'll consider supporting using MATCHER*() inside 594 // To learn more about using these macros, please search for 'MATCHER' 602 $var macro_name = [[$if i==0 [[MATCHER]] $elif i==1 [[MATCHER_P]]
|
| H A D | gmock-generated-matchers.h | 1387 #define MATCHER(name, description)\ macro
|
| /freebsd-13.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-generated-matchers_test.cc | 163 MATCHER(SumIsZero, "") { 736 MATCHER(IsEven, "") { return (arg % 2) == 0; } 750 MATCHER(IsEven2, negation ? "is odd" : "is even") { 806 MATCHER(IsEmptyString, "") { 811 MATCHER(IsEmptyStringByRef, "") { 827 MATCHER(IsOdd, "") { return (arg % 2) != 0; } 837 MATCHER(IsPositiveOdd, "") { 968 MATCHER(EqualsSumOf, "") { return arg == 0; } 1273 MATCHER(M, "") { return true; } 1311 MATCHER(IsNotNull, "") {
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Testing/Support/ |
| H A D | Error.h | 194 MATCHER(Succeeded, "") { return arg.Success(); } 195 MATCHER(Failed, "") { return !arg.Success(); }
|
| /freebsd-13.1/contrib/googletest/googlemock/ |
| H A D | CHANGES | 56 * The description string for MATCHER*() changes from Python-style 85 using MATCHER or MATCHER_P* aren't affected.
|
| H A D | README.md | 317 Matchers defined using `MATCHER()` or `MATCHER_P*()` aren't affected.
|
| /freebsd-13.1/contrib/googletest/googlemock/docs/ |
| H A D | DesignDoc.md | 266 MATCHER(name) { statements; } 273 MATCHER(IsPositive) { return arg > 0; }
|
| H A D | CheatSheet.md | 267 MATCHER(FooEq, "") { 339 | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even … 346 1. The `MATCHER*` macros cannot be used inside a function or class.
|
| H A D | CookBook.md | 2831 The `MATCHER*` family of macros can be used to define custom matchers 2835 MATCHER(name, description_string_expression) { statements; } 2856 MATCHER(IsDivisibleBy7, "") { return (arg % 7) == 0; } 2888 MATCHER(IsDivisibleBy7, std::string(negation ? "isn't" : "is") + 2898 MATCHER(IsDivisibleBy7, "") { 3040 While it's tempting to always use the `MATCHER*` macros when defining
|
| H A D | FrequentlyAskedQuestions.md | 22 `MATCHER*` family of macros are not affected.
|