MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/lite/experimental/ruy/allocator_test.cc:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23TEST(AllocatorTest, ReturnsValidMemory) {
24 Allocator allocator;
25 int *p;
26 allocator.Allocate(1, &p);
27 ASSERT_NE(p, nullptr);
28
29 // If this is bogus memory, ASan will cause this test to fail.
30 *p = 42;
31
32 allocator.FreeAll();
33}
34
35TEST(AllocatorTest, NoLeak) {
36 Allocator allocator;

Callers

nothing calls this directly

Calls 3

AllocateMethod · 0.45
FreeAllMethod · 0.45
AllocateBytesMethod · 0.45

Tested by

no test coverage detected