43#ifndef ALEPH_TESTS_GRAPH_CONTRACT_MATRIX_H
44#define ALEPH_TESTS_GRAPH_CONTRACT_MATRIX_H
50#include <gtest/gtest.h>
66 template <
class GT,
class SA>
67 constexpr bool hides = not std::is_same_v<SA, Aleph::Dft_Show_Arc<GT>>;
75 template <
class GT,
class F>
78 std::size_t calls = 0;
90 template <
class GT,
class F>
98 SCOPED_TRACE(
"const GT &");
The kinds of arc filter and of distance that the graph algorithms must accept.
Every small multigraph, on every kind of graph, for the tests.
void for_each_filter(F &&f)
Calls f(sa, name) with a filter of each kind of the catalog of graph_filter_catalog....
void for_each_constness(GT &g, F &&f)
Calls f(g) with g as it is and as a const graph.
constexpr int Hidden
The number of the arc that the filters hide.
constexpr bool hides
Whether a filter of type SA hides the arc Hidden: all but Dft_Show_Arc.
const unsigned long Hidden_Mask
The mask of the filters: only the arc Hidden.
void with_each_throw(F &f, const Filt &filt, const char *name)
Calls f(filt, name), as the loop over the filters of a test does, and again for each call k of the fi...
Default filter for filtered iterators on arcs.
A const member: default constructible, not assignable.
As Hide_Mask, and counts its calls through a pointer.
A std::deque member, whose move is not noexcept in libstdc++.
Hides the arcs of a mask; copyable, assignable, noexcept.
Keeps its mask by reference: neither assignable nor default constructible.
A hand-written copy that is not noexcept, which leaves the type without a move: std::move_if_noexcept...
Generic graph and digraph implementations.