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

Comprehensive tests for tpl_find_path.H. More...

#include <gtest/gtest.h>
#include <stdexcept>
#include <tpl_find_path.H>
#include <tpl_graph.H>
Include dependency graph for find_path_test.cc:

Go to the source code of this file.

Classes

class  FindPathTest
 

Typedefs

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

Functions

 TEST_F (FindPathTest, DFS_SimplePath)
 
 TEST_F (FindPathTest, DFS_PathToSelf)
 
 TEST_F (FindPathTest, DFS_NoPath)
 
 TEST_F (FindPathTest, DFS_CompleteGraph)
 
 TEST_F (FindPathTest, DFS_WithPredicate)
 
 TEST_F (FindPathTest, DFS_PredicateNotSatisfied)
 
 TEST_F (FindPathTest, BFS_SimplePath)
 
 TEST_F (FindPathTest, BFS_PathToSelf)
 
 TEST_F (FindPathTest, StartThatMeetsTheCriterion)
 
 TEST_F (FindPathTest, WhatTheFilterThrowsReachesTheCaller)
 
 TEST_F (FindPathTest, BFS_NoPath)
 
 TEST_F (FindPathTest, BFS_ShortestPath)
 
 TEST_F (FindPathTest, BFS_CompleteGraph)
 
 TEST_F (FindPathTest, BFS_WithPredicate)
 
 TEST_F (FindPathTest, DirectedDFS)
 
 TEST_F (FindPathTest, DirectedBFS)
 
 TEST_F (FindPathTest, DirectedNoPath)
 
 TEST_F (FindPathTest, DirectedPathToSelf)
 
 TEST_F (FindPathTest, DirectedWithPredicate)
 
 TEST_F (FindPathTest, LargeLinearGraph)
 
 TEST_F (FindPathTest, LargeCompleteGraph)
 
 TEST_F (FindPathTest, SingleNode)
 
 TEST_F (FindPathTest, TwoNodesConnected)
 
 TEST_F (FindPathTest, TwoNodesDisconnected)
 
 TEST_F (FindPathTest, CyclicGraph)
 
 TEST_F (FindPathTest, MultiplePaths_FindsOne)
 

Detailed Description

Comprehensive tests for tpl_find_path.H.

Definition in file find_path_test.cc.

Typedef Documentation

◆ Arc

using Arc = GT::Arc

Definition at line 19 of file find_path_test.cc.

◆ GT

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

Definition at line 17 of file find_path_test.cc.

◆ Node

using Node = GT::Node

Definition at line 18 of file find_path_test.cc.

Function Documentation

◆ TEST_F() [1/26]

TEST_F ( FindPathTest  ,
BFS_CompleteGraph   
)

Definition at line 290 of file find_path_test.cc.

References nodes.

◆ TEST_F() [2/26]

◆ TEST_F() [3/26]

TEST_F ( FindPathTest  ,
BFS_PathToSelf   
)

◆ TEST_F() [4/26]

◆ TEST_F() [5/26]

TEST_F ( FindPathTest  ,
BFS_SimplePath   
)

Definition at line 154 of file find_path_test.cc.

References Aleph::Path< GT >::is_empty(), and nodes.

◆ TEST_F() [6/26]

TEST_F ( FindPathTest  ,
BFS_WithPredicate   
)

Definition at line 300 of file find_path_test.cc.

References nodes.

◆ TEST_F() [7/26]

◆ TEST_F() [8/26]

TEST_F ( FindPathTest  ,
DFS_CompleteGraph   
)

Definition at line 115 of file find_path_test.cc.

References Aleph::Path< GT >::is_empty(), and nodes.

◆ TEST_F() [9/26]

TEST_F ( FindPathTest  ,
DFS_NoPath   
)

◆ TEST_F() [10/26]

TEST_F ( FindPathTest  ,
DFS_PathToSelf   
)

Definition at line 83 of file find_path_test.cc.

◆ TEST_F() [11/26]

TEST_F ( FindPathTest  ,
DFS_PredicateNotSatisfied   
)

Definition at line 140 of file find_path_test.cc.

References nodes.

◆ TEST_F() [12/26]

TEST_F ( FindPathTest  ,
DFS_SimplePath   
)

Definition at line 69 of file find_path_test.cc.

References Aleph::Path< GT >::is_empty(), nodes, and Aleph::Path< GT >::size().

◆ TEST_F() [13/26]

TEST_F ( FindPathTest  ,
DFS_WithPredicate   
)

Definition at line 128 of file find_path_test.cc.

References nodes.

◆ TEST_F() [14/26]

TEST_F ( FindPathTest  ,
DirectedBFS   
)

◆ TEST_F() [15/26]

TEST_F ( FindPathTest  ,
DirectedDFS   
)

◆ TEST_F() [16/26]

TEST_F ( FindPathTest  ,
DirectedNoPath   
)

◆ TEST_F() [17/26]

TEST_F ( FindPathTest  ,
DirectedPathToSelf   
)

◆ TEST_F() [18/26]

TEST_F ( FindPathTest  ,
DirectedWithPredicate   
)

◆ TEST_F() [19/26]

TEST_F ( FindPathTest  ,
LargeCompleteGraph   
)

Definition at line 430 of file find_path_test.cc.

References nodes.

◆ TEST_F() [20/26]

TEST_F ( FindPathTest  ,
LargeLinearGraph   
)

Definition at line 419 of file find_path_test.cc.

References nodes.

◆ TEST_F() [21/26]

◆ TEST_F() [22/26]

TEST_F ( FindPathTest  ,
SingleNode   
)

◆ TEST_F() [23/26]

TEST_F ( FindPathTest  ,
StartThatMeetsTheCriterion   
)

Definition at line 188 of file find_path_test.cc.

References nodes.

◆ TEST_F() [24/26]

◆ TEST_F() [25/26]

TEST_F ( FindPathTest  ,
TwoNodesDisconnected   
)

◆ TEST_F() [26/26]

TEST_F ( FindPathTest  ,
WhatTheFilterThrowsReachesTheCaller   
)