Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Memory Bag allocator unit test
Purpose

A set of unit tests to check each feature of the membag module

Behavior: executing each unit test in turn
  1. Check that the Membag is initialized and re-initialized correctly.
  2. Check that the Membag allocates small and large chunks of memory correctly, and fails when a chunk that is too large is requested.
  3. Check that the Membag frees previously allocated memory correctly
  4. Check that the Membag functions to determine memory status work correctly.
  5. Check that the Membag allocations fail once all suitable bags are already allocated.
  6. Check that the Membag re-allocates previously allocated and subsequently freed blocks of memory correctly.