join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
function_test.cpp File Reference
#include <join/function.hpp>
#include <gtest/gtest.h>
#include <memory>
#include <string>
Include dependency graph for function_test.cpp:

Classes

struct  Multiplier
 
struct  DestructGuard
 

Functions

 TEST (Function, construct)
 Test construction.
 
 TEST (Function, assign)
 Test assignment.
 
 TEST (Function, move)
 Test move.
 
 TEST (Function, nonTrivialMove)
 Test non-trivial move.
 
 TEST (Function, forward)
 Test forwarding.
 
 TEST (Function, destroy)
 Test destroy.
 
 TEST (Function, capture)
 Test lambda capture.
 
 TEST (Function, mutableLambda)
 Test mutable lambda.
 
 TEST (Function, swap)
 Test swap method.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/9]

TEST ( Function ,
assign  )

Test assignment.

◆ TEST() [2/9]

TEST ( Function ,
capture  )

Test lambda capture.

◆ TEST() [3/9]

TEST ( Function ,
construct  )

Test construction.

◆ TEST() [4/9]

TEST ( Function ,
destroy  )

Test destroy.

◆ TEST() [5/9]

TEST ( Function ,
forward  )

Test forwarding.

◆ TEST() [6/9]

TEST ( Function ,
move  )

Test move.

◆ TEST() [7/9]

TEST ( Function ,
mutableLambda  )

Test mutable lambda.

◆ TEST() [8/9]

TEST ( Function ,
nonTrivialMove  )

Test non-trivial move.

◆ TEST() [9/9]

TEST ( Function ,
swap  )

Test swap method.