macro_rules! test_immutable_dataset_impl {
    ($dataset_impl: ident) => { ... };
    ($module_name: ident, $dataset_impl: ident) => { ... };
    ($module_name: ident, $dataset_impl: ident, $is_set: expr) => { ... };
    ($module_name: ident, $dataset_impl: ident, $is_set: expr, $is_gen: expr) => { ... };
    ($module_name: ident, $dataset_impl: ident, $is_set: expr, $is_gen: expr, $dataset_collector: path) => { ... };
}
Expand description

Generate a test suite for an implementation of Dataset and CollectibleDataset.

If your type also implements MutableDataset, you should use test_dataset_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 to test);
  • dataset_impl: the type to test, implementing Dataset and CollectibleDataset;
  • is_set: a Boolean, indicating if dataset_impl implements SetDataset (defaults to true);
  • is_gen: a Boolean, indicating if dataset_impl supports the generalized model (defaults to true);
  • dataset_collector: a function used to collect quads into an instance of dataset_impl (defaults to dataset_impl::from_quad_source);