mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
Use the empty method to check for emptiness
PiperOrigin-RevId: 526046714 Change-Id: I6ad0deff2a7f6dfef75a643c95ad914c83b9ba38
This commit is contained in:
parent
a5308bb992
commit
baf182e006
@ -174,6 +174,6 @@ TEST(WideInitGoogleMockTest, ParsesGoogleMockFlagAndUnrecognizedFlag) {
|
|||||||
// Makes sure Google Mock flags can be accessed in code.
|
// Makes sure Google Mock flags can be accessed in code.
|
||||||
TEST(FlagTest, IsAccessibleInCode) {
|
TEST(FlagTest, IsAccessibleInCode) {
|
||||||
bool dummy =
|
bool dummy =
|
||||||
GMOCK_FLAG_GET(catch_leaked_mocks) && GMOCK_FLAG_GET(verbose) == "";
|
GMOCK_FLAG_GET(catch_leaked_mocks) && GMOCK_FLAG_GET(verbose).empty();
|
||||||
(void)dummy; // Avoids the "unused local variable" warning.
|
(void)dummy; // Avoids the "unused local variable" warning.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user