mirror of
https://github.com/google/googletest.git
synced 2025-12-21 19:14:55 +08:00
Changed redundant unit test names to be unique
This commit is contained in:
parent
5864e885eb
commit
914fa51f21
@ -135,7 +135,7 @@ TEST_F(StreamingListenerTest, OnTestEnd) {
|
||||
EXPECT_EQ("event=TestEnd&passed=1&elapsed_time=0ms\n", *output());
|
||||
}
|
||||
|
||||
TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
TEST_F(StreamingListenerTest, OnTestPartResultWithFatalFailure) {
|
||||
*output() = "";
|
||||
streamer_.OnTestPartResult(TestPartResult(
|
||||
TestPartResult::kFatalFailure, "foo.cc", 42, "failed=\n&%"));
|
||||
@ -146,7 +146,7 @@ TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
*output());
|
||||
}
|
||||
|
||||
TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
TEST_F(StreamingListenerTest, OnTestPartResultWithNonFatalFailure) {
|
||||
*output() = "";
|
||||
streamer_.OnTestPartResult(TestPartResult(
|
||||
TestPartResult::kNonFatalFailure, "foo.cc", 42, "failed=\n&%"));
|
||||
@ -157,18 +157,7 @@ TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
*output());
|
||||
}
|
||||
|
||||
TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
*output() = "";
|
||||
streamer_.OnTestPartResult(TestPartResult(
|
||||
TestPartResult::kFatalFailure, "foo.cc", 42, "failed=\n&%"));
|
||||
|
||||
// Meta characters in the failure message should be properly escaped.
|
||||
EXPECT_EQ(
|
||||
"event=TestPartResult&file=foo.cc&line=42&message=failed%3D%0A%26%25\n",
|
||||
*output());
|
||||
}
|
||||
|
||||
TEST_F(StreamingListenerTest, OnTestPartResult) {
|
||||
TEST_F(StreamingListenerTest, OnTestPartResultWithSkip) {
|
||||
*output() = "";
|
||||
streamer_.OnTestPartResult(TestPartResult(
|
||||
TestPartResult::kSkip, "foo.cc", 42, "failed=\n&%"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user