googletest/docs
Abseil Team 2954cb8d87 Add example using EXPECT statement in custom matcher
`EXPECT_...` statements can be used inside matcher definitions – this is an important option that is glossed over in this documentation. Users should definitely be aware of this option, since writing custom messages to the `result_listener` can be very cumbersome (and unnecessary) sometimes.

This change adds a relevant example and includes the associated error message it provides on failure.

PiperOrigin-RevId: 630206661
Change-Id: Idee00ba77ce3c1245597aa082f9cd0efff16aceb
2024-05-02 16:07:12 -07:00
..
_data Googletest export 2021-06-02 17:55:09 -04:00
_layouts documentation, change mater branch to main 2022-06-22 14:36:10 +03:00
_sass Googletest export 2021-05-25 13:34:39 -04:00
assets/css Googletest export 2021-02-19 13:55:48 -05:00
reference Fix https://github.com/google/googletest/issues/4423 2024-04-10 01:03:53 -07:00
_config.yml Googletest export 2021-02-19 13:55:48 -05:00
advanced.md Merge pull request #4435 from kaswhy:main 2024-01-29 07:50:37 -08:00
community_created_documentation.md Googletest export 2021-01-15 15:54:03 -05:00
faq.md GoogleTest FAQ: minor punctuation fixes 2023-09-14 10:37:04 -07:00
gmock_cheat_sheet.md Adjust includes to use <> instead of "", consistent with quickstart pages. 2023-07-28 09:51:41 -07:00
gmock_cook_book.md Add example using EXPECT statement in custom matcher 2024-05-02 16:07:12 -07:00
gmock_faq.md Fix reference to source file in gmock FAQ 2022-01-14 14:40:35 -08:00
gmock_for_dummies.md Add anchor for expectation ordering note 2024-02-13 13:55:04 -08:00
index.md Googletest export 2021-02-26 17:58:04 -05:00
pkgconfig.md cmake: Raise min to 3.6 2023-06-19 11:21:44 -06:00
platforms.md Copy supported platforms from README onto https://google.github.io/googletest/platforms.html 2023-06-01 07:28:42 -07:00
primer.md Modify example in the primer to match Testing FAQ. 2024-04-12 13:19:21 -07:00
quickstart-bazel.md Provide example for setting C++ language standard in GoogleTest's Bazel quickstart and readme. 2023-05-31 10:45:43 -07:00
quickstart-cmake.md Add CXX_STANDARD_REQUIRED to CMake quickstart 2023-05-21 16:40:06 -07:00
samples.md Merge pull request #3918 from assafpr:master2main 2022-08-01 11:47:51 -07:00