Debian Codegraph @

tests/test_min_edge_stem_arrow_overlap_simple.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("Minimum edge stem and arrow overlap",
9 "Test that an edge stem touches its arrow heads") {
10
11 const graph_options graph_options = {
12 .node_shape = "polygon",
13 .node_penwidth = 2,
14 .edge_penwidth = 2,
15 };
16
17 const tc_check_options check_options = {
18 .check_max_edge_node_overlap = false,
19 .check_min_edge_node_overlap = false,
20 .check_max_edge_stem_arrow_overlap = false,
21 .check_min_edge_stem_arrow_overlap = true};
22
23 const auto filename_base = AUTO_NAME();
24
25 test_edge_node_overlap(graph_options, check_options,
26 {.filename_base = filename_base});
27 }