File: GetTotalMemoryTest.cpp

package info (click to toggle)
cryfs 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,412 kB
  • sloc: cpp: 150,187; asm: 10,493; python: 1,455; javascript: 65; sh: 50; makefile: 17; xml: 7
file content (13 lines) | stat: -rw-r--r-- 301 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#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);
}