|
|
@ -177,6 +177,16 @@ fn evaluate_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
error |
|
|
|
error |
|
|
|
)), |
|
|
|
)), |
|
|
|
Ok(query) => { |
|
|
|
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
|
|
|
|
// FROM and FROM NAMED support. We make sure the data is in the store
|
|
|
|
if !query.dataset().is_default_dataset() { |
|
|
|
if !query.dataset().is_default_dataset() { |
|
|
|
for graph_name in query.dataset().default_graph_graphs().unwrap_or(&[]) { |
|
|
|
for graph_name in query.dataset().default_graph_graphs().unwrap_or(&[]) { |
|
|
@ -296,7 +306,18 @@ fn evaluate_update_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
test, |
|
|
|
test, |
|
|
|
error |
|
|
|
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!( |
|
|
|
Err(error) => Err(anyhow!( |
|
|
|
"Failure to execute update of {} with error: {}", |
|
|
|
"Failure to execute update of {} with error: {}", |
|
|
|
test, |
|
|
|
test, |
|
|
@ -320,7 +341,8 @@ fn evaluate_update_evaluation_test(test: &Test) -> Result<()> { |
|
|
|
)) |
|
|
|
)) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|