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

Comprehensive tests for tpl_test_path.H. More...

#include <gtest/gtest.h>
#include <vector>
#include <tpl_test_path.H>
#include <tpl_graph.H>
Include dependency graph for test_path_test.cc:

Go to the source code of this file.

Classes

class  TestPathTest
 

Typedefs

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

Functions

 TEST_F (TestPathTest, PathToSelf)
 
 TEST_F (TestPathTest, PathToSelfWithoutACycle)
 
 TEST_F (TestPathTest, DirectConnection)
 
 TEST_F (TestPathTest, NoConnection)
 
 TEST_F (TestPathTest, LinearPath)
 
 TEST_F (TestPathTest, TwoComponents_NoPath)
 
 TEST_F (TestPathTest, ManyArcsDoNotJoinTwoComponents)
 
 TEST_F (TestPathTest, IsolatedNode)
 
 TEST_F (TestPathTest, Triangle)
 
 TEST_F (TestPathTest, Diamond)
 
 TEST_F (TestPathTest, CompleteGraph)
 
 TEST_F (TestPathTest, Cycle)
 
 TEST_F (TestPathTest, Tree)
 
 TEST_F (TestPathTest, Star)
 
 TEST_F (TestPathTest, LongChain)
 
 TEST_F (TestPathTest, VeryLongChain)
 
 TEST_F (TestPathTest, TwoParallelPaths)
 
 TEST_F (TestPathTest, MultiplePathsBetweenNodes)
 
 TEST_F (TestPathTest, SelfLoop)
 
 TEST_F (TestPathTest, TwoNodesBidirectional)
 
 TEST_F (TestPathTest, ConnectedGraph_QuickReturn)
 
 TEST_F (TestPathTest, NotEnoughArcs_CanStillHavePath)
 
 TEST_F (TestPathTest, LargeCompleteGraph)
 
 TEST_F (TestPathTest, LargeTree)
 
 TEST_F (TestPathTest, MultipleCalls_SameGraph)
 
 TEST_F (TestPathTest, DifferentQueries_SameChecker)
 
 TEST_F (TestPathTest, Grid)
 
 TEST_F (TestPathTest, Wheel)
 
 TEST_F (TestPathTest, BipartiteGraph)
 
 TEST_F (TestPathTest, WithDefaultArcFilter)
 

Detailed Description

Comprehensive tests for tpl_test_path.H.

Definition in file test_path_test.cc.

Typedef Documentation

◆ Arc

using Arc = GT::Arc

Definition at line 20 of file test_path_test.cc.

◆ GT

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

Definition at line 18 of file test_path_test.cc.

◆ Node

using Node = GT::Node

Definition at line 19 of file test_path_test.cc.

Function Documentation

◆ TEST_F() [1/30]

TEST_F ( TestPathTest  ,
BipartiteGraph   
)

Definition at line 612 of file test_path_test.cc.

References l, m, and r.

◆ TEST_F() [2/30]

TEST_F ( TestPathTest  ,
CompleteGraph   
)

Definition at line 211 of file test_path_test.cc.

References nodes.

◆ TEST_F() [3/30]

TEST_F ( TestPathTest  ,
ConnectedGraph_QuickReturn   
)

Definition at line 429 of file test_path_test.cc.

References nodes.

◆ TEST_F() [4/30]

TEST_F ( TestPathTest  ,
Cycle   
)

Definition at line 231 of file test_path_test.cc.

References nodes.

◆ TEST_F() [5/30]

TEST_F ( TestPathTest  ,
Diamond   
)

Definition at line 191 of file test_path_test.cc.

◆ TEST_F() [6/30]

TEST_F ( TestPathTest  ,
DifferentQueries_SameChecker   
)

Definition at line 541 of file test_path_test.cc.

◆ TEST_F() [7/30]

TEST_F ( TestPathTest  ,
DirectConnection   
)

Definition at line 69 of file test_path_test.cc.

◆ TEST_F() [8/30]

TEST_F ( TestPathTest  ,
Grid   
)

Definition at line 562 of file test_path_test.cc.

References cols, and rows.

◆ TEST_F() [9/30]

TEST_F ( TestPathTest  ,
IsolatedNode   
)

Definition at line 154 of file test_path_test.cc.

◆ TEST_F() [10/30]

TEST_F ( TestPathTest  ,
LargeCompleteGraph   
)

Definition at line 469 of file test_path_test.cc.

References nodes.

◆ TEST_F() [11/30]

TEST_F ( TestPathTest  ,
LargeTree   
)

Definition at line 489 of file test_path_test.cc.

References root().

◆ TEST_F() [12/30]

TEST_F ( TestPathTest  ,
LinearPath   
)

Definition at line 91 of file test_path_test.cc.

◆ TEST_F() [13/30]

TEST_F ( TestPathTest  ,
LongChain   
)

Definition at line 313 of file test_path_test.cc.

References nodes.

◆ TEST_F() [14/30]

TEST_F ( TestPathTest  ,
ManyArcsDoNotJoinTwoComponents   
)

Definition at line 138 of file test_path_test.cc.

◆ TEST_F() [15/30]

TEST_F ( TestPathTest  ,
MultipleCalls_SameGraph   
)

Definition at line 527 of file test_path_test.cc.

◆ TEST_F() [16/30]

TEST_F ( TestPathTest  ,
MultiplePathsBetweenNodes   
)

Definition at line 372 of file test_path_test.cc.

◆ TEST_F() [17/30]

TEST_F ( TestPathTest  ,
NoConnection   
)

Definition at line 81 of file test_path_test.cc.

◆ TEST_F() [18/30]

TEST_F ( TestPathTest  ,
NotEnoughArcs_CanStillHavePath   
)

Definition at line 447 of file test_path_test.cc.

References nodes.

◆ TEST_F() [19/30]

TEST_F ( TestPathTest  ,
PathToSelf   
)

Definition at line 43 of file test_path_test.cc.

◆ TEST_F() [20/30]

TEST_F ( TestPathTest  ,
PathToSelfWithoutACycle   
)

Definition at line 53 of file test_path_test.cc.

◆ TEST_F() [21/30]

TEST_F ( TestPathTest  ,
SelfLoop   
)

Definition at line 401 of file test_path_test.cc.

◆ TEST_F() [22/30]

TEST_F ( TestPathTest  ,
Star   
)

Definition at line 288 of file test_path_test.cc.

◆ TEST_F() [23/30]

TEST_F ( TestPathTest  ,
Tree   
)

Definition at line 250 of file test_path_test.cc.

References root().

◆ TEST_F() [24/30]

TEST_F ( TestPathTest  ,
Triangle   
)

Definition at line 174 of file test_path_test.cc.

◆ TEST_F() [25/30]

TEST_F ( TestPathTest  ,
TwoComponents_NoPath   
)

Definition at line 114 of file test_path_test.cc.

◆ TEST_F() [26/30]

TEST_F ( TestPathTest  ,
TwoNodesBidirectional   
)

Definition at line 411 of file test_path_test.cc.

◆ TEST_F() [27/30]

TEST_F ( TestPathTest  ,
TwoParallelPaths   
)

Definition at line 351 of file test_path_test.cc.

◆ TEST_F() [28/30]

TEST_F ( TestPathTest  ,
VeryLongChain   
)

Definition at line 331 of file test_path_test.cc.

References nodes.

◆ TEST_F() [29/30]

TEST_F ( TestPathTest  ,
Wheel   
)

Definition at line 588 of file test_path_test.cc.

◆ TEST_F() [30/30]

TEST_F ( TestPathTest  ,
WithDefaultArcFilter   
)

Definition at line 641 of file test_path_test.cc.

References Aleph::filter().