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

Functions

 TEST (Thread, defaultConstruct)
 test default construction.
 
 TEST (Thread, moveConstruct)
 test move construction.
 
 TEST (Thread, moveAssign)
 test move assignment.
 
 TEST (Thread, joinable)
 test joinable.
 
 TEST (Thread, running)
 test running.
 
 TEST (Thread, tryJoin)
 test tryJoin.
 
 TEST (Thread, cancel)
 test cancel.
 
 TEST (Thread, swap)
 test swap.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST() [1/8]

TEST ( Thread ,
cancel  )

test cancel.

◆ TEST() [2/8]

TEST ( Thread ,
defaultConstruct  )

test default construction.

◆ TEST() [3/8]

TEST ( Thread ,
joinable  )

test joinable.

◆ TEST() [4/8]

TEST ( Thread ,
moveAssign  )

test move assignment.

◆ TEST() [5/8]

TEST ( Thread ,
moveConstruct  )

test move construction.

◆ TEST() [6/8]

TEST ( Thread ,
running  )

test running.

◆ TEST() [7/8]

TEST ( Thread ,
swap  )

test swap.

◆ TEST() [8/8]

TEST ( Thread ,
tryJoin  )

test tryJoin.