|
|
|
@ -12,6 +12,8 @@ use std::fs::{create_dir, remove_dir_all, File}; |
|
|
|
|
use std::io::Cursor; |
|
|
|
|
#[cfg(not(target_family = "wasm"))] |
|
|
|
|
use std::io::Write; |
|
|
|
|
#[cfg(not(target_family = "wasm"))] |
|
|
|
|
use std::iter::empty; |
|
|
|
|
#[cfg(target_os = "linux")] |
|
|
|
|
use std::iter::once; |
|
|
|
|
#[cfg(not(target_family = "wasm"))] |
|
|
|
@ -159,6 +161,16 @@ fn test_bulk_load_graph_lenient() -> Result<(), Box<dyn Error>> { |
|
|
|
|
Ok(()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
#[cfg(not(target_family = "wasm"))] |
|
|
|
|
fn test_bulk_load_empty() -> Result<(), Box<dyn Error>> { |
|
|
|
|
let store = Store::new()?; |
|
|
|
|
store.bulk_loader().load_quads(empty::<Quad>())?; |
|
|
|
|
assert!(store.is_empty()?); |
|
|
|
|
store.validate()?; |
|
|
|
|
Ok(()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
|
fn test_load_dataset() -> Result<(), Box<dyn Error>> { |
|
|
|
|
let store = Store::new()?; |
|
|
|
|