diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-01 15:48:43 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-01 15:48:43 +0100 |
commit | 6c339d8aab380a191fe3fce7ca7dc7c09e252ebd (patch) | |
tree | ca5a1288fcbc5299b5bf5cc28d012a5bd6147549 /tests/test-storage.cpp | |
parent | cbf1ba38794ab6a323441dcc3b0e5e942f7ab386 (diff) |
Tests and coverage on gcc and clang
Diffstat (limited to 'tests/test-storage.cpp')
-rw-r--r-- | tests/test-storage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test-storage.cpp b/tests/test-storage.cpp index 11d8a20..87168fc 100644 --- a/tests/test-storage.cpp +++ b/tests/test-storage.cpp @@ -64,29 +64,29 @@ TEST_F(StorageTest, create) TEST_F(StorageTest, getNumberOfDocuments) { Storage storage(m_config); - EXPECT_EQ(storage.getNumberOfDocuments(), 0); + EXPECT_EQ(storage.getNumberOfDocuments(), 0UL); storage.setDocument("123", "abc"); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); storage.setDocument("def", "xyz"); - EXPECT_EQ(storage.getNumberOfDocuments(), 2); + EXPECT_EQ(storage.getNumberOfDocuments(), 2UL); } TEST_F(StorageTest, cleanup_empty) { Storage storage(m_config); - EXPECT_EQ(storage.getNumberOfDocuments(), 0); + EXPECT_EQ(storage.getNumberOfDocuments(), 0UL); storage.cleanup(); - EXPECT_EQ(storage.getNumberOfDocuments(), 0); + EXPECT_EQ(storage.getNumberOfDocuments(), 0UL); } TEST_F(StorageTest, cleanup) { Storage storage(m_config); - EXPECT_EQ(storage.getNumberOfDocuments(), 0); + EXPECT_EQ(storage.getNumberOfDocuments(), 0UL); storage.setDocument("123", "abc"); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); storage.cleanup(); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); } TEST_F(StorageTest, exists) @@ -111,7 +111,7 @@ TEST_F(StorageTest, setDocument) { Storage storage(m_config); storage.setDocument("0", "abc"); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); EXPECT_EQ(storage.getDocument("0"), "abc"); } @@ -121,7 +121,7 @@ TEST_F(StorageTest, setRevision) storage.setDocument("0", "abc"); storage.setRevision("0", 123); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); EXPECT_EQ(storage.getRevision("0"), 123); } @@ -131,7 +131,7 @@ TEST_F(StorageTest, setCursorPos) storage.setDocument("0", "abc"); storage.setCursorPos("0", 1234); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); EXPECT_EQ(storage.getCursorPos("0"), 1234); } @@ -140,7 +140,7 @@ TEST_F(StorageTest, setRow) Storage storage(m_config); storage.setRow("0", "abc", 56, 67); - EXPECT_EQ(storage.getNumberOfDocuments(), 1); + EXPECT_EQ(storage.getNumberOfDocuments(), 1UL); EXPECT_EQ(storage.getDocument("0"), "abc"); EXPECT_EQ(storage.getRevision("0"), 56); EXPECT_EQ(storage.getCursorPos("0"), 67); |