MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / TEST

Function TEST

tests/unit_test/dma_region_test.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "io_buffer.hpp"
10
11TEST(DmaRegionTest, DefaultConstructedIsInvalid) {
12 DmaRegion region{};
13 EXPECT_FALSE(region.IsValid());
14 EXPECT_EQ(region.virt, nullptr);
15 EXPECT_EQ(region.phys, 0u);
16 EXPECT_EQ(region.size, 0u);
17}
18
19TEST(DmaRegionTest, ValidRegion) {
20 uint8_t buf[256]{};

Callers

nothing calls this directly

Calls 4

IdentityVirtToPhysFunction · 0.85
DataMethod · 0.80
SubRegionMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected