Debian Codegraph @

tests/test_edge_node_overlap_diamond_edge_arrow.cpp

raw
1 #include <string>
2
3 #include <catch2/catch_all.hpp>
4
5 #include "test_edge_node_overlap_utilities.h"
6 #include "test_utilities.h"
7
8 TEST_CASE("Edge node overlap for diamond arrow",
9 "An edge connected to a node shall touch that node and not overlap "
10 "it too much") {
11
12 const std::string_view primitive_arrow_shape = "diamond";
13
14 INFO("Edge arrowhead: " << primitive_arrow_shape);
15
16 std::string filename_base = AUTO_NAME();
17
18 const graph_options graph_options = {
19 .node_shape = "polygon",
20 .node_penwidth = 2,
21 .dir = "both",
22 .edge_penwidth = 2,
23 .primitive_arrowhead_shape = primitive_arrow_shape,
24 .primitive_arrowtail_shape = primitive_arrow_shape,
25 };
26
27 test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base});
28 }