[−][src]Macro sophia_api::test_graph_impl
Generate a test suite for an implementation of
Graph
, CollectibleGraph
and MutableGraph
.
If your type only implements Graph
and CollectibleGraph
,
you should use test_immutable_graph_impl
instead.
This macro is only available when the feature test_macro
is enabled.
It accepts the following parameters:
module_name
: the name of the module to generate (defaults totest
);graph_impl
: the type to test, implementingGraph
,CollectibleGraph
andMutableGraph
;is_set
: a boolean, indicating ifgraph_impl
implementsSetGraph
(defaults totrue
);is_gen
: a boolean, indicating ifgraph_impl
supports the generalized model (defaults totrue
);graph_collector
: a function used to collect triples into an instance ofgraph_impl
(defaults tograph_impl::from_triple_source
);mt
is used internally, do not touch it...