add feature-flags on test files

this allows to run 'cargo test' with only a subset of features enabled,
i.e.
  cargo test
or
  cargo test --features sled
pull/46/head
Pierre-Antoine Champin 5 years ago
parent 5a289c8fb4
commit 35cb9ffef3
  1. 2
      lib/tests/rocksdb_store.rs
  2. 2
      lib/tests/sled_store.rs

@ -1,3 +1,5 @@
#![cfg(features = "rocksdb")]
use oxigraph::model::vocab::{rdf, xsd};
use oxigraph::model::*;
use oxigraph::RocksDbStore;

@ -1,3 +1,5 @@
#![cfg(features = "sled")]
use oxigraph::io::{DatasetFormat, GraphFormat};
use oxigraph::model::vocab::{rdf, xsd};
use oxigraph::model::*;

Loading…
Cancel
Save