aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch)
treecfd2e2baa05c3196f2caacbb63c32e1df40bc3de /library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp
parent7489e4682331202b9c7d863c0898eb83d7b12c2b (diff)
downloadydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp')
-rw-r--r--library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp b/library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp
index 81cdfd0427..7fb0fd7a21 100644
--- a/library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp
+++ b/library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp
@@ -52,7 +52,7 @@ std::pair<bool, std::string> Match(T&& t, M&& m) {
}
TEST(Matchers, Throws) {
- auto matcher = testing::Throws<std::runtime_error>();
+ auto matcher = testing::Throws<std::runtime_error>();
{
std::stringstream ss;
@@ -78,7 +78,7 @@ TEST(Matchers, Throws) {
{
auto [matched, explanation] = Match([]() { throw 10; }, matcher);
EXPECT_FALSE(matched);
- EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
+ EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
}
{
@@ -89,7 +89,7 @@ TEST(Matchers, Throws) {
}
TEST(Matchers, ThrowsMessage) {
- auto matcher = testing::ThrowsMessage<std::runtime_error>(testing::HasSubstr("error message"));
+ auto matcher = testing::ThrowsMessage<std::runtime_error>(testing::HasSubstr("error message"));
{
std::stringstream ss;
@@ -122,7 +122,7 @@ TEST(Matchers, ThrowsMessage) {
{
auto [matched, explanation] = Match([]() { throw 10; }, matcher);
EXPECT_FALSE(matched);
- EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
+ EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
}
{
@@ -133,7 +133,7 @@ TEST(Matchers, ThrowsMessage) {
}
TEST(Matchers, ThrowsMessageHasSubstr) {
- auto matcher = testing::ThrowsMessage<std::runtime_error>(testing::HasSubstr("error message"));
+ auto matcher = testing::ThrowsMessage<std::runtime_error>(testing::HasSubstr("error message"));
{
std::stringstream ss;
@@ -166,7 +166,7 @@ TEST(Matchers, ThrowsMessageHasSubstr) {
{
auto [matched, explanation] = Match([]() { throw 10; }, matcher);
EXPECT_FALSE(matched);
- EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
+ EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
}
{
@@ -177,7 +177,7 @@ TEST(Matchers, ThrowsMessageHasSubstr) {
}
TEST(Matchers, ThrowsCondition) {
- auto matcher = testing::Throws<std::runtime_error>(
+ auto matcher = testing::Throws<std::runtime_error>(
testing::Property(&std::exception::what, testing::HasSubstr("error message")));
{
@@ -212,7 +212,7 @@ TEST(Matchers, ThrowsCondition) {
{
auto [matched, explanation] = Match([]() { throw 10; }, matcher);
EXPECT_FALSE(matched);
- EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
+ EXPECT_THAT(explanation, testing::HasSubstr("throws an exception of an unknown type"));
}
{