MCPcopy Create free account
hub / github.com/avast/retdec / SetUp

Method SetUp

tests/utils/memory_tests.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21class MemoryTests: public Test {
22protected:
23 virtual void SetUp() override {
24 // Several tests have side effects, so we need to store the original
25 // total memory so we can restore it after each test.
26 totalSystemMemory = getTotalSystemMemory();
27 }
28
29 virtual void TearDown() override {
30 limitSystemMemory(totalSystemMemory);

Callers

nothing calls this directly

Calls 1

getTotalSystemMemoryFunction · 0.85

Tested by

no test coverage detected