MCPcopy Create free account
hub / github.com/NetSys/bess / TEST

Function TEST

core/memory_test.cc:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace bess {
14
15TEST(PhyMemTest, Phy2Virt) {
16 if (geteuid() == 0) {
17 int x = 0; // &x is a valid address
18 EXPECT_NE(Virt2PhyGeneric(&x), 0);
19 }
20}
21
22TEST(HugepageTest, NullFree) {
23 FreeHugepage(nullptr);

Callers

nothing calls this directly

Calls 13

Virt2PhyGenericFunction · 0.85
FreeHugepageFunction · 0.85
AllocHugepageFunction · 0.85
NumNumaNodesFunction · 0.85
Virt2PhyFunction · 0.85
InitializedMethod · 0.80
sizeMethod · 0.80
TotalFreeBytesMethod · 0.80
GetRangeMethod · 0.80
clearMethod · 0.80
FreeMethod · 0.45
DumpMethod · 0.45

Tested by

no test coverage detected