Debian Codegraph @

tests/test_edge_node_overlap_tee_edge_arrow_various_arrowsizes.cpp

raw
1 #include <format>
2 #include <string>
3
4 #include <catch2/catch_all.hpp>
5
6 #include "test_edge_node_overlap_utilities.h"
7 #include "test_utilities.h"
8
9 TEST_CASE("Edge node overlap for 'tee' arrow using various arrow sizes",
10 "An edge connected to a node shall touch that node and not overlap "
11 "it too much") {
12
13 std::string filename_base = AUTO_NAME();
14
15 const std::string_view primitive_arrow_shape = "tee";
16
17 INFO("Edge arrowhead: " << primitive_arrow_shape);
18 filename_base += std::format("_arrow_shape_{}", primitive_arrow_shape);
19
20 const auto arrowsize = GENERATE(0.0, 0.1, 0.5, 1.0, 2.0, 3.0);
21 INFO("Edge arrowsize: " << arrowsize);
22 filename_base += std::format("_arrowsize_{}", arrowsize);
23
24 const graph_options graph_options = {
25 .node_shape = "polygon",
26 .node_penwidth = 2,
27 .dir = "both",
28 .edge_penwidth = 2,
29 .edge_arrowsize = arrowsize,
30 .primitive_arrowhead_shape = primitive_arrow_shape,
31 .primitive_arrowtail_shape = primitive_arrow_shape,
32 };
33
34 test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base});
35 }