libmoost
/home/mhx/git/github/libmoost/test/utils/scope_exit.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/test/test_tools.hpp>
#include <stdexcept>
#include <csignal>
#include <set>
#include <boost/bind.hpp>
#include "../../include/moost/utils/scope_exit.hpp"
Include dependency graph for scope_exit.cpp:

Go to the source code of this file.

Classes

struct  Fixture

Functions

 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_set_default_value, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_set_default_value_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_set_specific_value, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_set_specific_value_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_restore_original_value, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_restore_original_value_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_member_function_default_, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_member_function_default_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_member_function, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_member_function_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_function_with_ref, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_function_with_ref_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_functor_with_ref, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_functor_with_ref_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_function_with_val, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_free_function_with_val_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_functor_with_val, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_functor_with_val_cancel, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_functor, Fixture)
 BOOST_FIXTURE_TEST_CASE (test_utils_scope_exit_call_functor_cancel, Fixture)

Function Documentation

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_set_default_value  ,
Fixture   
)

Definition at line 64 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_set_default_value_cancel  ,
Fixture   
)

Definition at line 81 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_set_specific_value  ,
Fixture   
)

Definition at line 100 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_set_specific_value_cancel  ,
Fixture   
)

Definition at line 110 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_restore_original_value  ,
Fixture   
)

Definition at line 121 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_restore_original_value_cancel  ,
Fixture   
)

Definition at line 138 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_member_function_default_  ,
Fixture   
)

Definition at line 175 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_member_function_default_cancel  ,
Fixture   
)

Definition at line 185 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_member_function  ,
Fixture   
)

Definition at line 213 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_member_function_cancel  ,
Fixture   
)

Definition at line 223 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_function_with_ref  ,
Fixture   
)

Definition at line 255 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_function_with_ref_cancel  ,
Fixture   
)

Definition at line 265 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_functor_with_ref  ,
Fixture   
)

Definition at line 276 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_functor_with_ref_cancel  ,
Fixture   
)

Definition at line 286 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_function_with_val  ,
Fixture   
)

Definition at line 315 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_free_function_with_val_cancel  ,
Fixture   
)

Definition at line 326 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_functor_with_val  ,
Fixture   
)

Definition at line 338 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_functor_with_val_cancel  ,
Fixture   
)

Definition at line 349 of file scope_exit.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_functor  ,
Fixture   
)

Definition at line 376 of file scope_exit.cpp.

BOOST_FIXTURE_TEST_CASE ( test_utils_scope_exit_call_functor_cancel  ,
Fixture   
)

Definition at line 389 of file scope_exit.cpp.

Here is the call graph for this function: