Debian Codegraph @

tests/test_edge_node_overlap_box_edge_arrow.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 box arrow",
10 "An edge connected to a node shall touch that node and not overlap "
11 "it too much") {
12
13 const std::string_view primitive_arrow_shape = "box";
14
15 INFO(std::format("Edge arrowhead: {}", primitive_arrow_shape));
16
17 std::string filename_base = AUTO_NAME();
18
19 const graph_options graph_options = {
20 .node_shape = "polygon",
21 .node_penwidth = 2,
22 .dir = "both",
23 .edge_penwidth = 2,
24 .primitive_arrowhead_shape = primitive_arrow_shape,
25 .primitive_arrowtail_shape = primitive_arrow_shape,
26 };
27
28 test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base});
29 }