Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
cookie_guard_test.cc File Reference

Tests for Cookie Guard. More...

#include <gtest/gtest.h>
#include <cookie_guard.H>
#include <tpl_graph.H>
Include dependency graph for cookie_guard_test.cc:

Go to the source code of this file.

Classes

class  CookieGuardTest
 

Typedefs

using Graph = List_Graph< Graph_Node< int >, Graph_Arc< int > >
 
using Node = Graph::Node
 
using Arc = Graph::Arc
 

Functions

 TEST_F (CookieGuardTest, BasicCleanup)
 
 TEST_F (CookieGuardTest, SelectiveCleanup)
 
 TEST_F (CookieGuardTest, Release)
 
 TEST_F (CookieGuardTest, ClearNow)
 
 TEST_F (CookieGuardTest, CustomDeleter)
 
 TEST_F (CookieGuardTest, ExceptionSafety)
 
 TEST_F (CookieGuardTest, MoveConstruction)
 
 TEST_F (CookieGuardTest, BasicSaveRestore)
 
 TEST_F (CookieGuardTest, SaveRestoreWithNullOriginal)
 
 TEST_F (CookieGuardTest, Discard)
 
 TEST_F (CookieGuardTest, RestoreNow)
 
 TEST_F (CookieGuardTest, SaverWithCleanup)
 
 TEST_F (CookieGuardTest, SaverExceptionSafety)
 
 TEST_F (CookieGuardTest, GetSavedCookies)
 
 TEST_F (CookieGuardTest, WithCleanCookies)
 
 TEST_F (CookieGuardTest, WithSavedCookies)
 
 TEST_F (CookieGuardTest, NestedSavers)
 
 TEST_F (CookieGuardTest, ScopeGuardBasicCleanup)
 
 TEST_F (CookieGuardTest, ScopeGuardRelease)
 
 TEST_F (CookieGuardTest, ScopeGuardCleanupNow)
 
 TEST_F (CookieGuardTest, ScopeGuardMoveConstruction)
 
 TEST_F (CookieGuardTest, ScopeGuardExceptionSafety)
 
 TEST_F (CookieGuardTest, ScopeGuardWithRealCleanup)
 

Detailed Description

Tests for Cookie Guard.

Definition in file cookie_guard_test.cc.

Typedef Documentation

◆ Arc

using Arc = Graph::Arc

Definition at line 46 of file cookie_guard_test.cc.

◆ Graph

using Graph = List_Graph<Graph_Node<int>, Graph_Arc<int> >

Definition at line 44 of file cookie_guard_test.cc.

◆ Node

using Node = Graph::Node

Definition at line 45 of file cookie_guard_test.cc.

Function Documentation

◆ TEST_F() [1/23]

TEST_F ( CookieGuardTest  ,
BasicCleanup   
)

Definition at line 85 of file cookie_guard_test.cc.

References ARC_COOKIE, Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [2/23]

TEST_F ( CookieGuardTest  ,
BasicSaveRestore   
)

Definition at line 204 of file cookie_guard_test.cc.

References ARC_COOKIE, Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [3/23]

TEST_F ( CookieGuardTest  ,
ClearNow   
)

Definition at line 133 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [4/23]

TEST_F ( CookieGuardTest  ,
CustomDeleter   
)

Definition at line 148 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [5/23]

TEST_F ( CookieGuardTest  ,
Discard   
)

Definition at line 245 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [6/23]

TEST_F ( CookieGuardTest  ,
ExceptionSafety   
)

Definition at line 170 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [7/23]

◆ TEST_F() [8/23]

TEST_F ( CookieGuardTest  ,
MoveConstruction   
)

Definition at line 189 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [9/23]

TEST_F ( CookieGuardTest  ,
NestedSavers   
)

Definition at line 372 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [10/23]

TEST_F ( CookieGuardTest  ,
Release   
)

Definition at line 120 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [11/23]

TEST_F ( CookieGuardTest  ,
RestoreNow   
)

Definition at line 259 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [12/23]

TEST_F ( CookieGuardTest  ,
SaveRestoreWithNullOriginal   
)

Definition at line 229 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [13/23]

TEST_F ( CookieGuardTest  ,
SaverExceptionSafety   
)

Definition at line 305 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [14/23]

TEST_F ( CookieGuardTest  ,
SaverWithCleanup   
)

Definition at line 275 of file cookie_guard_test.cc.

References Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [15/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardBasicCleanup   
)

Definition at line 398 of file cookie_guard_test.cc.

References Aleph::maps().

◆ TEST_F() [16/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardCleanupNow   
)

Definition at line 428 of file cookie_guard_test.cc.

References Aleph::maps().

◆ TEST_F() [17/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardExceptionSafety   
)

Definition at line 468 of file cookie_guard_test.cc.

References Aleph::maps().

◆ TEST_F() [18/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardMoveConstruction   
)

Definition at line 450 of file cookie_guard_test.cc.

References Aleph::maps().

◆ TEST_F() [19/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardRelease   
)

Definition at line 413 of file cookie_guard_test.cc.

References Aleph::maps().

◆ TEST_F() [20/23]

TEST_F ( CookieGuardTest  ,
ScopeGuardWithRealCleanup   
)

◆ TEST_F() [21/23]

TEST_F ( CookieGuardTest  ,
SelectiveCleanup   
)

Definition at line 106 of file cookie_guard_test.cc.

References ARC_COOKIE, Aleph::maps(), and NODE_COOKIE.

◆ TEST_F() [22/23]

TEST_F ( CookieGuardTest  ,
WithCleanCookies   
)

Definition at line 345 of file cookie_guard_test.cc.

References Aleph::maps(), NODE_COOKIE, and Aleph::with_clean_cookies().

◆ TEST_F() [23/23]

TEST_F ( CookieGuardTest  ,
WithSavedCookies   
)

Definition at line 359 of file cookie_guard_test.cc.

References Aleph::maps(), NODE_COOKIE, and Aleph::with_saved_cookies().