9ccb006f61
- Fix clang-tidy warnings from Clang 15
14 lines
301 B
C++
14 lines
301 B
C++
#include <gtest/gtest.h>
|
|
#include <cpp-utils/system/get_total_memory.h>
|
|
|
|
using cpputils::system::get_total_memory;
|
|
|
|
TEST(GetTotalMemoryTest, DoesntCrash) {
|
|
get_total_memory();
|
|
}
|
|
|
|
TEST(GetTotalMemoryTest, IsNotZero) {
|
|
const uint64_t mem = get_total_memory();
|
|
EXPECT_LT(UINT64_C(0), mem);
|
|
}
|