Project
Loading...
Searching...
No Matches
testBoundedAllocator.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "GenericTracking/BoundedAllocator.h"
#include <stdexcept>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   GenericTrackingBoundedAllocator
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 BOOST_AUTO_TEST_CASE (huge_request_cannot_wrap_past_budget)
 
 BOOST_AUTO_TEST_CASE (upstream_failure_rolls_back_reserved_bytes)
 
 BOOST_AUTO_TEST_CASE (legacy_mutable_budget_and_stage_peak_are_preserved)
 
 BOOST_AUTO_TEST_CASE (failed_rebuild_leaves_valid_vector_on_requested_resource)
 
 BOOST_AUTO_TEST_CASE (element_constructor_failure_leaves_vector_destructible)
 
 BOOST_AUTO_TEST_CASE (resize_reuses_capacity_and_honors_resource_changes)
 
 BOOST_AUTO_TEST_CASE (nested_vectors_and_arrays_retain_legacy_clear_semantics)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 14 of file testBoundedAllocator.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 13 of file testBoundedAllocator.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   GenericTrackingBoundedAllocator

Definition at line 12 of file testBoundedAllocator.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( element_constructor_failure_leaves_vector_destructible  )

Definition at line 104 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( failed_rebuild_leaves_valid_vector_on_requested_resource  )

Definition at line 91 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( huge_request_cannot_wrap_past_budget  )

Definition at line 48 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( legacy_mutable_budget_and_stage_peak_are_preserved  )

Definition at line 69 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( nested_vectors_and_arrays_retain_legacy_clear_semantics  )

Definition at line 135 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( resize_reuses_capacity_and_honors_resource_changes  )

Definition at line 120 of file testBoundedAllocator.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( upstream_failure_rolls_back_reserved_bytes  )

Definition at line 59 of file testBoundedAllocator.cxx.