MCPcopy Create free account
hub / github.com/coreboot/coreboot / test_rdev_basics

Function test_rdev_basics

tests/commonlib/region-test.c:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115u8 mock_buffer[256];
116
117static void test_rdev_basics(void **state)
118{
119 assert_int_equal(region_device_offset(&mock_rdev), 0);
120 assert_int_equal(region_device_sz(&mock_rdev), ~(size_t)0);
121 assert_int_equal(region_device_last(&mock_rdev), ~(size_t)0 - 1);
122}
123
124/*
125 * This function sets up defaults for the mock_rdev_ops functions so we don't have to explicitly

Callers

nothing calls this directly

Calls 3

region_device_offsetFunction · 0.85
region_device_szFunction · 0.85
region_device_lastFunction · 0.85

Tested by

no test coverage detected