|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Items that enter a DynArrayHeap when memory runs out. More...
#include <gtest/gtest.h>#include "allocation_failure.H"#include <new>#include <string>#include <vector>#include <tpl_dynArrayHeap.H>Go to the source code of this file.
Functions | |
| TEST_F (DynArrayHeapWithoutMemory, InsertOfACopyLeavesTheHeapAsItWas) | |
| TEST_F (DynArrayHeapWithoutMemory, InsertOfAMoveLeavesTheHeapAsItWas) | |
Items that enter a DynArrayHeap when memory runs out.
This program replaces the global operator new, so that a test can make one allocation fail. insert() counted the item before it made its place and copied it: without memory for either, the heap counted an item that it did not have.
Definition in file dynarrayheap_allocation_test.cc.
| TEST_F | ( | DynArrayHeapWithoutMemory | , |
| InsertOfACopyLeavesTheHeapAsItWas | |||
| ) |
Definition at line 141 of file dynarrayheap_allocation_test.cc.
References h.
| TEST_F | ( | DynArrayHeapWithoutMemory | , |
| InsertOfAMoveLeavesTheHeapAsItWas | |||
| ) |
Definition at line 146 of file dynarrayheap_allocation_test.cc.
References h.