diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/testing/gtest_extensions/ut/gtest_extensions_ut.cpp | |
parent | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff) | |
download | ydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 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.cpp | 16 |
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 7fb0fd7a21..81cdfd0427 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")); } { |