Improved test generation

This commit is contained in:
Syrus
2020-04-14 11:41:12 -07:00
parent c2306bd39e
commit a7dba54b7f
15 changed files with 1018 additions and 1558 deletions

View File

@ -178,6 +178,11 @@ impl ImportObject {
}
out
}
/// Returns true if the ImportObject contains namespace with the provided name.
pub fn contains_namespace(&self, name: &str) -> bool {
self.map.lock().unwrap().borrow().contains_key(name)
}
}
/// Iterator for an `ImportObject`'s exports.