join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
shmalloc_test.cpp File Reference
#include <join/allocator.hpp>
#include <gtest/gtest.h>
Include dependency graph for shmalloc_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 the allocate method.
 
 TEST_F (PosixAlloc, tryAllocate)
 test the tryAllocate method.
 
 TEST_F (PosixAlloc, deallocate)
 test the deallocate method.
 
 TEST_F (PosixAlloc, mbind)
 test the mbind method.
 
 TEST_F (PosixAlloc, mlock)
 test the mlock method.
 
 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/7]

TEST_F ( PosixAlloc ,
allocate  )

test the allocate method.

◆ TEST_F() [2/7]

TEST_F ( PosixAlloc ,
benchmark  )

test concurrent access.

◆ TEST_F() [3/7]

TEST_F ( PosixAlloc ,
deallocate  )

test the deallocate method.

◆ TEST_F() [4/7]

TEST_F ( PosixAlloc ,
mbind  )

test the mbind method.

◆ TEST_F() [5/7]

TEST_F ( PosixAlloc ,
mlock  )

test the mlock method.

◆ TEST_F() [6/7]

TEST_F ( PosixAlloc ,
move  )

test move.

◆ TEST_F() [7/7]

TEST_F ( PosixAlloc ,
tryAllocate  )

test the tryAllocate method.