|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for generate_df_tree.H. More...
#include <gtest/gtest.h>#include <algorithm>#include <functional>#include <memory>#include <random>#include <set>#include <sstream>#include <stdexcept>#include <string>#include <utility>#include <vector>#include <generate_df_tree.H>#include <tpl_cut_nodes.H>#include <tpl_graph_utils.H>Go to the source code of this file.
Functions | |
| TEST (Df_Low_Tree, writes_the_tree_with_df_low_and_the_other_arcs) | |
| TEST (Df_Low_Tree, writes_the_labels_that_the_writer_chooses) | |
| TEST (Df_Low_Tree, builds_the_tree_and_the_other_arcs) | |
| TEST (Df_Low_Tree, the_tree_depends_on_the_start_node) | |
| TEST (Df_Low_Tree, a_single_node_is_only_a_root) | |
| TEST (Df_Low_Tree, the_default_label_writes_the_node_info) | |
| TEST (Df_Low_Tree, a_parallel_arc_is_another_arc) | |
| TEST (Df_Low_Tree, an_arc_from_a_node_to_itself_is_left_out) | |
| TEST (Df_Low_Tree, only_the_arcs_that_the_filter_shows_count) | |
| TEST (Df_Low_Tree, only_the_nodes_that_the_start_node_reaches_are_in_the_tree) | |
| TEST (Df_Low_Tree, does_not_modify_the_graph) | |
| TEST (Df_Low_Tree, rejects_a_digraph_and_a_null_start_node) | |
| TEST (Df_Low_Tree, an_exception_leaves_nothing_behind) | |
| TEST (Df_Low_Tree, a_tree_of_any_depth_is_written) | |
| TEST (Df_Low_Tree, a_deep_tree_is_written_on_a_small_stack) | |
| TEST (Df_Low_Tree, agrees_with_cut_nodes_and_bridges) | |
Tests for generate_df_tree.H.
Definition in file generate_df_tree_test.cc.
| TEST | ( | Df_Low_Tree | , |
| a_deep_tree_is_written_on_a_small_stack | |||
| ) |
Definition at line 390 of file generate_df_tree_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), nodes, out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| a_parallel_arc_is_another_arc | |||
| ) |
Definition at line 215 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| a_single_node_is_only_a_root | |||
| ) |
Definition at line 194 of file generate_df_tree_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| a_tree_of_any_depth_is_written | |||
| ) |
Definition at line 331 of file generate_df_tree_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), Aleph::Max_Tree_Node_Depth, nodes, out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| agrees_with_cut_nodes_and_bridges | |||
| ) |
Definition at line 436 of file generate_df_tree_test.cc.
References Aleph::and, Aleph::build_df_low_tree(), Aleph::compute_cut_nodes(), Aleph::find_bridges(), FunctionalMethods< Container, T >::for_each(), Aleph::Tree_Node< T >::get_key(), Aleph::Tree_Node< T >::get_left_child(), GraphCommon< GT, Node, Arc >::get_num_arcs(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), k, nodes, num_nodes, preorder, rng, and Aleph::DynList< T >::size().
| TEST | ( | Df_Low_Tree | , |
| an_arc_from_a_node_to_itself_is_left_out | |||
| ) |
Definition at line 226 of file generate_df_tree_test.cc.
References out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| an_exception_leaves_nothing_behind | |||
| ) |
Definition at line 308 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree(), Aleph::HTList::is_empty(), out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| builds_the_tree_and_the_other_arcs | |||
| ) |
Definition at line 161 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree(), k, keys, and preorder.
| TEST | ( | Df_Low_Tree | , |
| does_not_modify_the_graph | |||
| ) |
Definition at line 266 of file generate_df_tree_test.cc.
References ARC_COOKIE, Aleph::build_df_low_tree(), NODE_COOKIE, NODE_COUNTER, out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| only_the_arcs_that_the_filter_shows_count | |||
| ) |
Definition at line 236 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| only_the_nodes_that_the_start_node_reaches_are_in_the_tree | |||
| ) |
Definition at line 248 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree(), preorder, Aleph::DynArray< T >::size(), and y.
| TEST | ( | Df_Low_Tree | , |
| rejects_a_digraph_and_a_null_start_node | |||
| ) |
Definition at line 291 of file generate_df_tree_test.cc.
References Aleph::build_df_low_tree(), out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| the_default_label_writes_the_node_info | |||
| ) |
Definition at line 203 of file generate_df_tree_test.cc.
References Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| the_tree_depends_on_the_start_node | |||
| ) |
Definition at line 178 of file generate_df_tree_test.cc.
References out, and Aleph::write_df_low_tree().
| TEST | ( | Df_Low_Tree | , |
| writes_the_labels_that_the_writer_chooses | |||
| ) |
Definition at line 130 of file generate_df_tree_test.cc.
References Aleph::df().
| TEST | ( | Df_Low_Tree | , |
| writes_the_tree_with_df_low_and_the_other_arcs | |||
| ) |
Definition at line 122 of file generate_df_tree_test.cc.
References out, and Aleph::write_df_low_tree().