Lines Matching refs:unwrap
143 let data = self.get(parent).unwrap(); in find()
144 match data.get_directory().unwrap().get(name) { in find()
160 self.get_mut(parent).unwrap().add_to_directory(name, DirectoryEntry { inode, kind }); in add()
197 let name = CString::new(name.as_bytes()).unwrap(); in from_zip()
202 let mut inode = table.get_mut(parent).unwrap(); in from_zip()
242 let it = InodeTable::from_zip(&mut zip.unwrap()); in setup()
244 it.unwrap() in setup()
248 let name = CString::new(name.as_bytes()).unwrap(); in check_dir()
251 let inode = inode.unwrap(); in check_dir()
254 let inode_data = inode_data.unwrap(); in check_dir()
261 let name = CString::new(name.as_bytes()).unwrap(); in check_file()
264 let inode = inode.unwrap(); in check_file()
267 let inode_data = inode_data.unwrap(); in check_file()
283 zip.start_file("foo", FileOptions::default()).unwrap(); in one_file()
284 zip.write_all(b"0123456789").unwrap(); in one_file()
293 zip.add_directory("foo", FileOptions::default()).unwrap(); in one_dir()
297 assert_eq!(0, it.get(inode).unwrap().get_directory().unwrap().len()); in one_dir()
303 zip.start_file("a/b/c/d", FileOptions::default()).unwrap(); in one_file_in_subdirs()
304 zip.write_all(b"0123456789").unwrap(); in one_file_in_subdirs()
335 zip.add_directory("a/b1", opt).unwrap(); in complex_hierarchy()
337 zip.start_file("a/b2/c1", opt).unwrap(); in complex_hierarchy()
339 zip.start_file("a/b2/c2/d1", opt).unwrap(); in complex_hierarchy()
340 zip.start_file("a/b2/c2/d2", opt).unwrap(); in complex_hierarchy()
341 zip.start_file("a/b2/c2/d3", opt).unwrap(); in complex_hierarchy()
343 zip.start_file("x/y1", opt).unwrap(); in complex_hierarchy()
344 zip.start_file("x/y2", opt).unwrap(); in complex_hierarchy()
345 zip.add_directory("x/y3", opt).unwrap(); in complex_hierarchy()
347 zip.start_file("foo", opt).unwrap(); in complex_hierarchy()
348 zip.start_file("bar", opt).unwrap(); in complex_hierarchy()
375 zip.start_file("empty", opt).unwrap(); in file_size()
377 zip.start_file("10bytes", opt).unwrap(); in file_size()
378 zip.write_all(&[0; 10]).unwrap(); in file_size()
380 zip.start_file("1234bytes", opt).unwrap(); in file_size()
381 zip.write_all(&[0; 1234]).unwrap(); in file_size()
383 zip.start_file("2^20bytes", opt).unwrap(); in file_size()
384 zip.write_all(&[0; 2 << 20]).unwrap(); in file_size()
411 writer.start_file(*path, FileOptions::default()).unwrap(); in rejects_invalid_paths()
417 let it = InodeTable::from_zip(&mut zip.unwrap()); in rejects_invalid_paths()