Debian Codegraph @

tests/test_edge_node_overlap_record_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 record based node",
11 "Test that an edge connected to a record based node touches that "
12 "node and does not overlap it too much") {
13
14 std::string filename_base = AUTO_NAME();
15
16 const auto shape = "record";
17 INFO("Node shape: " << shape);
18
19 const auto rankdir = GENERATE(from_range(all_rank_directions));
20 INFO("Rank direction: " << rankdir);
21 filename_base += std::format("_rankdir_{}", rankdir);
22
23 const graph_options graph_options = {
24 .rankdir = rankdir,
25 .node_shape = shape,
26 .node_penwidth = 1,
27 .edge_penwidth = 1,
28 };
29
30 test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base});
31 }