MCPcopy Create free account
hub / github.com/darktable-org/rawspeed / TEST

Function TEST

test/librawspeed/common/MemoryTest.cpp:141–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139#pragma GCC diagnostic pop
140
141TEST(AlignedMallocDeathTest, AlignedFreeHandlesNullptr) {
142 ASSERT_EXIT(
143 {
144 alignedFree(nullptr);
145 exit(0);
146 },
147 ::testing::ExitedWithCode(0), "");
148 ASSERT_EXIT(
149 {
150 alignedFreeConstPtr(nullptr);
151 exit(0);
152 },
153 ::testing::ExitedWithCode(0), "");
154}
155
156TYPED_TEST(AlignedMallocTest, TemplateTest) {
157 ASSERT_NO_THROW({

Callers

nothing calls this directly

Calls 2

alignedFreeFunction · 0.85
alignedFreeConstPtrFunction · 0.85

Tested by

no test coverage detected