Commit c2b2cd88 by Abseil Team Committed by Shaindel Schwartz

Googletest export

...text exposed to GitHub repo https://www.github.com/google/googletest PiperOrigin-RevId: 267617889
parent 3f05f651
...@@ -221,17 +221,17 @@ and the default action will be taken each time. ...@@ -221,17 +221,17 @@ and the default action will be taken each time.
<!-- GOOGLETEST_CM0020 DO NOT DELETE --> <!-- GOOGLETEST_CM0020 DO NOT DELETE -->
A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or
`EXPECT_CALL()`, or use it to validate a value directly: `EXPECT_CALL()`, or use it to validate a value directly using two macros:
<!-- mdformat off(github rendering does not support multiline tables) --> <!-- mdformat off(github rendering does not support multiline tables) -->
| Matcher | Description | | Macro | Description |
| :----------------------------------- | :------------------------------------ | | :----------------------------------- | :------------------------------------ |
| `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. | | `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. |
| `ASSERT_THAT(actual_value, matcher)` | The same as `EXPECT_THAT(actual_value, matcher)`, except that it generates a **fatal** failure. | | `ASSERT_THAT(actual_value, matcher)` | The same as `EXPECT_THAT(actual_value, matcher)`, except that it generates a **fatal** failure. |
<!-- mdformat on --> <!-- mdformat on -->
Built-in matchers (where `argument` is the function argument) are divided into Built-in matchers (where `argument` is the function argument, e.g.
several categories: `actual_value` in the example above) are divided into several categories:
#### Wildcard #### Wildcard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment