|
|
|
@ -246,12 +246,15 @@ impl Iterator for TestManifest { |
|
|
|
|
None => { |
|
|
|
|
match self.manifests_to_do.pop() { |
|
|
|
|
Some(url) => { |
|
|
|
|
let manifest = SubjectRef::from(NamedNodeRef::new(url.as_str()).unwrap()); |
|
|
|
|
self.graph.clear(); |
|
|
|
|
if let Err(error) = load_to_graph(&url, &mut self.graph) { |
|
|
|
|
return Some(Err(error)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// New manifests
|
|
|
|
|
for manifest in self |
|
|
|
|
.graph |
|
|
|
|
.subjects_for_predicate_object(rdf::TYPE, mf::MANIFEST) |
|
|
|
|
{ |
|
|
|
|
match self |
|
|
|
|
.graph |
|
|
|
|
.object_for_subject_predicate(manifest, mf::INCLUDE) |
|
|
|
@ -280,11 +283,15 @@ impl Iterator for TestManifest { |
|
|
|
|
.extend(RdfListIterator::iter(&self.graph, list.into())); |
|
|
|
|
} |
|
|
|
|
Some(term) => { |
|
|
|
|
return Some(Err(anyhow!("Invalid tests list. Got term {}", term))); |
|
|
|
|
return Some(Err(anyhow!( |
|
|
|
|
"Invalid tests list. Got term {}", |
|
|
|
|
term |
|
|
|
|
))); |
|
|
|
|
} |
|
|
|
|
None => (), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
None => return None, |
|
|
|
|
} |
|
|
|
|
self.next() |
|
|
|
|