KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_inplace_function.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <functional>
#include <string>
#include <core/inplace_function.h>

Go to the source code of this file.

Macros

#define BOOST_TEST_NO_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (MoveAssignAndInvoke)
 
 BOOST_AUTO_TEST_CASE (CopyKeepsSourceLive)
 
 BOOST_AUTO_TEST_CASE (MoveLeavesSourceEmpty)
 
 BOOST_AUTO_TEST_CASE (SelfAssignmentIsSafe)
 
 BOOST_AUTO_TEST_CASE (EmptyInvocationThrows)
 
 BOOST_AUTO_TEST_CASE (StringReturnType)
 

Macro Definition Documentation

◆ BOOST_TEST_NO_MAIN

#define BOOST_TEST_NO_MAIN

Definition at line 19 of file test_inplace_function.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( CopyKeepsSourceLive )

Definition at line 46 of file test_inplace_function.cpp.

References BOOST_CHECK_EQUAL(), and copy.

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( EmptyInvocationThrows )

Definition at line 76 of file test_inplace_function.cpp.

References empty().

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( MoveAssignAndInvoke )

Definition at line 30 of file test_inplace_function.cpp.

References BOOST_AUTO_TEST_CASE(), and BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( MoveLeavesSourceEmpty )

Definition at line 56 of file test_inplace_function.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( SelfAssignmentIsSafe )

Definition at line 66 of file test_inplace_function.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( StringReturnType )

Definition at line 82 of file test_inplace_function.cpp.

References BOOST_CHECK_EQUAL().