|
|
|
@ -177,6 +177,16 @@ fn evaluate_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
|
error |
|
|
|
|
)), |
|
|
|
|
Ok(query) => { |
|
|
|
|
// We check parsing roundtrip
|
|
|
|
|
if let Err(error) = Query::parse(&query.to_string(), None) { |
|
|
|
|
return Err(anyhow!( |
|
|
|
|
"Failure to deserialize \"{}\" of {} with error: {}", |
|
|
|
|
query.to_string(), |
|
|
|
|
test, |
|
|
|
|
error |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// FROM and FROM NAMED support. We make sure the data is in the store
|
|
|
|
|
if !query.dataset().is_default_dataset() { |
|
|
|
|
for graph_name in query.dataset().default_graph_graphs().unwrap_or(&[]) { |
|
|
|
@ -296,7 +306,18 @@ fn evaluate_update_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
|
test, |
|
|
|
|
error |
|
|
|
|
)), |
|
|
|
|
Ok(update) => match store.update(update) { |
|
|
|
|
Ok(update) => { |
|
|
|
|
// We check parsing roundtrip
|
|
|
|
|
if let Err(error) = Update::parse(&update.to_string(), None) { |
|
|
|
|
return Err(anyhow!( |
|
|
|
|
"Failure to deserialize \"{}\" of {} with error: {}", |
|
|
|
|
update.to_string(), |
|
|
|
|
test, |
|
|
|
|
error |
|
|
|
|
)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
match store.update(update) { |
|
|
|
|
Err(error) => Err(anyhow!( |
|
|
|
|
"Failure to execute update of {} with error: {}", |
|
|
|
|
test, |
|
|
|
@ -320,7 +341,8 @@ fn evaluate_update_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
|
)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|