OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_cleanup.cpp File Reference
#include "test_common.hpp"
#include <openvpn/common/cleanup.hpp>
#include <memory>
#include <stdexcept>
#include <vector>
Include dependency graph for test_cleanup.cpp:

Go to the source code of this file.

Functions

 TEST (Misc, Cleanup)
 
 TEST (misc, cleanup_basic_execution)
 
 TEST (misc, cleanup_multiple_guards)
 
 TEST (misc, cleanup_dismiss)
 
 TEST (misc, cleanup_dismiss_idempotent)
 
 TEST (misc, cleanup_release)
 
 TEST (misc, cleanup_release_empty)
 
 TEST (misc, cleanup_move_constructor)
 
 TEST (misc, cleanup_move_constructor_no_double_execute)
 
 TEST (misc, cleanup_exception_swallowed)
 
 TEST (misc, cleanup_noexcept_destructor)
 
 TEST (misc, cleanup_with_mutable_lambda)
 
 TEST (misc, cleanup_with_captured_unique_ptr)
 
 TEST (misc, cleanup_concept_constraint)
 
 TEST (misc, cleanup_dismiss_then_destroy)
 
 TEST (misc, cleanup_factory_function)
 
 TEST (misc, cleanup_return_from_function)
 
 TEST (misc, cleanup_nested_scopes)
 
 TEST (misc, cleanup_conditional_dismiss)
 

Function Documentation

◆ TEST() [1/19]

TEST ( Misc  ,
Cleanup   
)

Definition at line 11 of file test_cleanup.cpp.

◆ TEST() [2/19]

TEST ( misc  ,
cleanup_basic_execution   
)

Definition at line 23 of file test_cleanup.cpp.

◆ TEST() [3/19]

TEST ( misc  ,
cleanup_concept_constraint   
)

Definition at line 189 of file test_cleanup.cpp.

◆ TEST() [4/19]

TEST ( misc  ,
cleanup_conditional_dismiss   
)

Definition at line 266 of file test_cleanup.cpp.

◆ TEST() [5/19]

TEST ( misc  ,
cleanup_dismiss   
)

Definition at line 51 of file test_cleanup.cpp.

◆ TEST() [6/19]

TEST ( misc  ,
cleanup_dismiss_idempotent   
)

Definition at line 62 of file test_cleanup.cpp.

◆ TEST() [7/19]

TEST ( misc  ,
cleanup_dismiss_then_destroy   
)

Definition at line 207 of file test_cleanup.cpp.

◆ TEST() [8/19]

TEST ( misc  ,
cleanup_exception_swallowed   
)

Definition at line 131 of file test_cleanup.cpp.

◆ TEST() [9/19]

TEST ( misc  ,
cleanup_factory_function   
)

Definition at line 220 of file test_cleanup.cpp.

◆ TEST() [10/19]

TEST ( misc  ,
cleanup_move_constructor   
)

Definition at line 106 of file test_cleanup.cpp.

◆ TEST() [11/19]

TEST ( misc  ,
cleanup_move_constructor_no_double_execute   
)

Definition at line 118 of file test_cleanup.cpp.

◆ TEST() [12/19]

TEST ( misc  ,
cleanup_multiple_guards   
)

Definition at line 33 of file test_cleanup.cpp.

◆ TEST() [13/19]

TEST ( misc  ,
cleanup_nested_scopes   
)

Definition at line 245 of file test_cleanup.cpp.

◆ TEST() [14/19]

TEST ( misc  ,
cleanup_noexcept_destructor   
)

Definition at line 150 of file test_cleanup.cpp.

◆ TEST() [15/19]

TEST ( misc  ,
cleanup_release   
)

Definition at line 75 of file test_cleanup.cpp.

◆ TEST() [16/19]

TEST ( misc  ,
cleanup_release_empty   
)

Definition at line 92 of file test_cleanup.cpp.

◆ TEST() [17/19]

TEST ( misc  ,
cleanup_return_from_function   
)

Definition at line 231 of file test_cleanup.cpp.

◆ TEST() [18/19]

TEST ( misc  ,
cleanup_with_captured_unique_ptr   
)

Definition at line 169 of file test_cleanup.cpp.

◆ TEST() [19/19]

TEST ( misc  ,
cleanup_with_mutable_lambda   
)

Definition at line 157 of file test_cleanup.cpp.