Skip to content

Commit ea3e4d0

Browse files
committed
Added useless unit test to get coverage
1 parent 0c1bc26 commit ea3e4d0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/app/server-cluster/tests/TestDefaultServerCluster.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,16 @@ TEST(TestDefaultServerCluster, TestFlagsDefault)
8585
ASSERT_EQ(cluster.GetClusterFlags().Raw(), 0u);
8686
}
8787

88+
TEST(TestDefaultServerCluster, ListWriteNotification)
89+
{
90+
FakeDefaultServerCluster cluster({ 1, 2 });
91+
92+
// this does not test anything really, except we get 100% coverage and we see that we do not crash
93+
cluster.ListAttributeWriteNotification({1,2,3}, DataModel::ListWriteOperation::kListWriteBegin);
94+
cluster.ListAttributeWriteNotification({1,2,3}, DataModel::ListWriteOperation::kListWriteFailure);
95+
}
96+
97+
8898
TEST(TestDefaultServerCluster, AttributesDefault)
8999
{
90100
FakeDefaultServerCluster cluster({ 1, 2 });

0 commit comments

Comments
 (0)