Debian Codegraph @

tests/test_edge_node_overlap_cylinder_node_shape.cpp

raw
1 #include <format>
2 #include <iostream>
3 #include <string>
4
5 #include <catch2/catch_all.hpp>
6
7 #include "test_edge_node_overlap_utilities.h"
8 #include "test_utilities.h"
9
10 TEST_CASE("Overlap cylinder node shape",
11 "Test that an edge connected to a 'cylinder' shaped node touches "
12 "that node and does not overlap it too much") {
13
14 const auto shape = "cylinder";
15 INFO("Node shape: " << shape);
16
17 const auto rankdir = GENERATE(from_range(all_rank_directions));
18 INFO("Rank direction: " << rankdir);
19
20 const graph_options graph_options = {
21 .rankdir = rankdir,
22 .node_shape = shape,
23 .node_penwidth = 2,
24 .edge_penwidth = 2,
25 };
26
27 const auto filename_base = std::format("{}_rankdir_{}", AUTO_NAME(), rankdir);
28
29 test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base});
30 }