join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
shm_alloc_test.cpp File Reference
#include <join/statistics.hpp>
#include <join/allocator.hpp>
#include <gtest/gtest.h>
Include dependency graph for shm_alloc_test.cpp:

Classes

class  PosixAlloc
 class used to test the posix shared memory provider. More...
 

Functions

 TEST_F (PosixAlloc, move)
 test move.
 
 TEST_F (PosixAlloc, allocate)
 test allocate.
 
 TEST_F (PosixAlloc, tryAllocate)
 test tryAllocate.
 
 TEST_F (PosixAlloc, deallocate)
 test deallocate.
 
 TEST_F (PosixAlloc, getIndex)
 test getIndex.
 
 TEST_F (PosixAlloc, getPtr)
 test getPtr.
 
 TEST_F (PosixAlloc, reserveAll)
 test reserveAll.
 
 TEST_F (PosixAlloc, releaseAll)
 test releaseAll.
 
 TEST_F (PosixAlloc, mlock)
 test mlock.
 
 TEST_F (PosixAlloc, benchmark)
 test concurrent access.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST_F() [1/10]

TEST_F ( PosixAlloc ,
allocate  )

test allocate.

◆ TEST_F() [2/10]

TEST_F ( PosixAlloc ,
benchmark  )

test concurrent access.

◆ TEST_F() [3/10]

TEST_F ( PosixAlloc ,
deallocate  )

test deallocate.

◆ TEST_F() [4/10]

TEST_F ( PosixAlloc ,
getIndex  )

test getIndex.

◆ TEST_F() [5/10]

TEST_F ( PosixAlloc ,
getPtr  )

test getPtr.

◆ TEST_F() [6/10]

TEST_F ( PosixAlloc ,
mlock  )

test mlock.

◆ TEST_F() [7/10]

TEST_F ( PosixAlloc ,
move  )

test move.

◆ TEST_F() [8/10]

TEST_F ( PosixAlloc ,
releaseAll  )

test releaseAll.

◆ TEST_F() [9/10]

TEST_F ( PosixAlloc ,
reserveAll  )

test reserveAll.

◆ TEST_F() [10/10]

TEST_F ( PosixAlloc ,
tryAllocate  )

test tryAllocate.