rambrain
testManagedFileSwap.cpp File Reference

Go to the source code of this file.

Functions

 TEST (managedFileSwap, Unit_LazyPffree)
 
 TEST (managedFileSwap, Unit_ManualSwapping)
 
 TEST (managedFileSwap, Unit_ManualMultiSwapping)
 
 TEST (managedFileSwap, Unit_ManualSwappingDelete)
 
 TEST (managedFileSwap, Unit_SimpleSwapping)
 
 TEST (managedFileSwap, Unit_SwapSize)
 
 TEST (managedFileSwap, Integration_RandomAccess)
 
 TEST (managedFileSwap, Integration_RandomAccessVariousSize)
 
 TEST (managedFileSwap, Unit_SwapAllocation)
 
 TEST (managedFileSwap, Unit_SwapReadAllocatedChunk)
 
 TEST (managedFileSwap, Unit_SwapSingleIsland)
 
 TEST (managedFileSwap, Unit_SwapNextAndSingleIsland)
 
 TEST (managedFileSwap, Integration_MatrixTranspose)
 
 TEST (managedFileSwap, Unit_SwapPolicy)
 
 TEST (managedFileSwap, Unit_CheckSwapStats)
 
 TEST (managedFileSwap, Unit_EmptySizeSwapped)
 
 TEST (managedFileSwap, Unit_EmptySizeFillsUp)
 

Variables

 IGNORE_TEST_WARNINGS
 
 RESTORE_WARNINGS
 

Function Documentation

TEST ( managedFileSwap  ,
Unit_LazyPffree   
)
Test:
Tests for speedup implied by const lazy deallocation
Note
As this is normally cached, real life speedup will be a multiple of this when writing to disk...

Definition at line 39 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_ManualSwapping   
)
Test:
Tests whether managedFileSwap can take a memoryChunk and store it securely.

Definition at line 92 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_ManualMultiSwapping   
)
Test:
Tests whether managedFileSwap can take a few memoryChunk and store it securely.

Definition at line 133 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_ManualSwappingDelete   
)
Test:
Tests whether deletion of swapped out elements is handled correctly.

Definition at line 184 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SimpleSwapping   
)
Test:
Tests interplay between managedFileSwap and a cylicManaged Memory

Definition at line 225 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapSize   
)
Test:
Tests whether the swap size is accounted for correctly.

Definition at line 242 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Integration_RandomAccess   
)
Test:
Puts memory manager and swap under heavy load of objects of the same size by randomly allocating / deallocating them

Definition at line 292 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Integration_RandomAccessVariousSize   
)
Test:
Puts memory manager and swap under heavy load of objects of various sizes by randomly allocating / deallocating them

Definition at line 354 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapAllocation   
)
Test:
Checks correct allocation of swap files

Definition at line 425 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapReadAllocatedChunk   
)

Definition at line 534 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapSingleIsland   
)
Test:
Checks capability to cope with memory shortage in certain circumstances

Definition at line 567 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapNextAndSingleIsland   
)
Test:
Checks capability to cope with memory shortage in certain circumstances

Definition at line 611 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Integration_MatrixTranspose   
)
Test:
Implements a simple matrix transposition that has to be swapping to check for data integrity

Definition at line 660 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_SwapPolicy   
)
Test:
Check correct usage of swap policy

Definition at line 711 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_CheckSwapStats   
)
Test:
Tests whether swapstats are gathered correctly for some simple cases and if they are plausible for some more complicated stuff

Definition at line 755 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_EmptySizeSwapped   
)
Test:
Tests what happens if a pointer of size 0 is potentially swapped

Definition at line 865 of file testManagedFileSwap.cpp.

TEST ( managedFileSwap  ,
Unit_EmptySizeFillsUp   
)
Test:
Tests what happens if a pointer of size 0 is inserted into a full memory

Definition at line 895 of file testManagedFileSwap.cpp.

Variable Documentation

IGNORE_TEST_WARNINGS

Definition at line 21 of file testManagedFileSwap.cpp.

RESTORE_WARNINGS

Definition at line 920 of file testManagedFileSwap.cpp.