[−][src]Macro sophia::test_immutable_dataset_impl
Generates a test suite for implementations of
Dataset
, CollectibleDataset
.
If your type also implements MutableDataset
,
you should use test_dataset_impl
instead.
This macro is only available when the feature test_macros
is enabled.
It accepts the following parameters:
module_name
: the name of the module to generate (defaults totest
);dataset_impl
: the type to test, implementingDataset
andCollectibleDataset
;is_set
: a boolean, indicating ifdataset_impl
implementsSetDataset
(defaults totrue
);is_gen
: a boolean, indicating ifdataset_impl
supports the generalized model (defaults totrue
);dataset_collector
: a function used to collect quads into an instance ofdataset_impl
(defaults todataset_impl::from_quad_source
);