Replaced EXPECT_NE(x.typeString(), nullptr) with EXPECT_FALSE(x.typeString().empty()) for all 6 *TypeString tests as upstream changed typeString() return type from const char* to std::string_view

Signed-off-by: dsengupta0628 <[email protected]>
This commit is contained in:
dsengupta0628
2026-04-20 13:49:09 +00:00
parent 63fb0e0550
commit f6a1fdbaff
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -222,34 +222,34 @@ TEST_F(SdcInitTest, DisabledCellPortsIsDisabled) {
// ExceptionPath::typeString via various subclasses
TEST_F(SdcInitTest, FalsePathTypeString) {
FalsePath fp(nullptr, nullptr, nullptr, MinMaxAll::all(), true, "");
EXPECT_NE(fp.typeString(), nullptr);
EXPECT_FALSE(fp.typeString().empty());
}
TEST_F(SdcInitTest, PathDelayTypeString) {
PathDelay pd(nullptr, nullptr, nullptr, MinMax::max(),
false, false, 5.0f, true, "");
EXPECT_NE(pd.typeString(), nullptr);
EXPECT_FALSE(pd.typeString().empty());
}
TEST_F(SdcInitTest, MultiCyclePathTypeString) {
MultiCyclePath mcp(nullptr, nullptr, nullptr, MinMaxAll::all(),
true, 3, true, "");
EXPECT_NE(mcp.typeString(), nullptr);
EXPECT_FALSE(mcp.typeString().empty());
}
TEST_F(SdcInitTest, FilterPathTypeString) {
FilterPath fp(nullptr, nullptr, nullptr, true);
EXPECT_NE(fp.typeString(), nullptr);
EXPECT_FALSE(fp.typeString().empty());
}
TEST_F(SdcInitTest, GroupPathTypeString) {
GroupPath gp("grp1", false, nullptr, nullptr, nullptr, true, "");
EXPECT_NE(gp.typeString(), nullptr);
EXPECT_FALSE(gp.typeString().empty());
}
TEST_F(SdcInitTest, LoopPathTypeString) {
LoopPath lp(nullptr, true);
EXPECT_NE(lp.typeString(), nullptr);
EXPECT_FALSE(lp.typeString().empty());
}
// ExceptionPath::mergeable tests