diff options
| author | Stefan Boberg <[email protected]> | 2022-05-20 18:45:35 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-20 18:45:35 +0200 |
| commit | f0d389a4430b62bfa8ea0852905fcf84065b08c2 (patch) | |
| tree | 450344815e7bb7c3dde0d94f6032f048f3430527 /zenstore/blockstore.cpp | |
| parent | fix mac compilation error (diff) | |
| download | zen-f0d389a4430b62bfa8ea0852905fcf84065b08c2.tar.xz zen-f0d389a4430b62bfa8ea0852905fcf84065b08c2.zip | |
Add catch2 support (#101)
Added option to use catch2 for unit tests
Currently both doctest and catch2 are supported via some compatibility macros. doctest is the default, and ZEN_USE_CATCH2 needs to be defined to switch to catch2.
Our goal is to evaluate how well catch2 works and switch to catch2 if everything pans out since UE5 now supports using catch2 for unit tests.
Diffstat (limited to 'zenstore/blockstore.cpp')
| -rw-r--r-- | zenstore/blockstore.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp index d490678b5..3e27b0d12 100644 --- a/zenstore/blockstore.cpp +++ b/zenstore/blockstore.cpp @@ -911,12 +911,6 @@ BlockStore::GetBlockPath(const std::filesystem::path& BlocksBasePath, const uint #if ZEN_WITH_TESTS -static bool -operator==(const BlockStoreLocation& Lhs, const BlockStoreLocation& Rhs) -{ - return Lhs.BlockIndex == Rhs.BlockIndex && Lhs.Offset == Rhs.Offset && Lhs.Size == Rhs.Size; -} - TEST_CASE("blockstore.blockstoredisklocation") { BlockStoreLocation Zero = BlockStoreLocation{.BlockIndex = 0, .Offset = 0, .Size = 0}; |