Skip to content

Commit

Permalink
clean SNLID
Browse files Browse the repository at this point in the history
  • Loading branch information
xtofalex committed Jul 23, 2023
1 parent 10ca6c3 commit 33d1e83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/snl/snl/kernel/SNLID.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ struct SNLID final {
DesignObjectID instanceID_ {0};
Bit bit_ {0};

SNLID() = default;
SNLID() = delete;

///Special constructor for SNLDB
SNLID(DBID dbID):
Expand Down
5 changes: 0 additions & 5 deletions test/snl/snl/kernel/SNLIDTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ TEST(SNLIDTest, testSize) {
EXPECT_EQ(1+1+2+4+4+4+4 /*20*/, sizeof(SNLID));
}

TEST(SNLIDTest, testEmpty) {
auto id = SNLID();
EXPECT_EQ(id, SNLID(SNLID::Type::DB, 0, 0, 0, 0, 0, 0));
}

TEST(SNLIDTest, testComparisons) {
EXPECT_LT(SNLID(0), SNLID(1));
EXPECT_NE(SNLID(0), SNLID(1));
Expand Down

0 comments on commit 33d1e83

Please sign in to comment.