You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Throws<E>()`| The `argument` is a callable object that, when called, throws an exception of the expected type `E`. |
119
+
|`Throws<E>(m)`| The `argument` is a callable object that, when called, throws an exception of type `E` that satisfies the matcher `m`. |
120
+
|`ThrowsMessage<E>(m)`| The `argument` is a callable object that, when called, throws an exception of type `E` with a message that satisfies the matcher `m`. |
121
+
122
+
Examples:
123
+
124
+
```cpp
125
+
auto argument = [] { throw std::runtime_error("error msg"); };
126
+
127
+
// Checks if the lambda throws a `std::runtime_error`.
0 commit comments