Lines Matching refs:table
25 table: Vec<InodeData>, field
135 _ => self.table.get(inode as usize), in get()
142 _ => self.table.get_mut(inode as usize), in get_mut()
147 let inode = self.table.len() as Inode; in put()
148 self.table.push(data); in put()
180 let mut table = InodeTable { table: Vec::new() }; in from_zip() localVariable
183 assert_eq!(INVALID, table.put(InodeData::new_dir(0))); in from_zip()
184 assert_eq!(ROOT, table.put(InodeData::new_dir(DEFAULT_DIR_MODE))); in from_zip()
220 if let Some(found) = table.find(parent, &name) { in from_zip()
224 let inode = table.get_mut(parent).unwrap(); in from_zip()
241 let new = table.add(parent, name, inode); in from_zip()
245 Ok(table) in from_zip()
298 assert_eq!(2, it.table.len()); in empty_zip_has_two_inodes()
330 assert_eq!(6, it.table.len()); in one_file_in_subdirs()
374 assert_eq!(16, it.table.len()); // 8 files, 6 dirs, and 2 (for root and the invalid inode) in complex_hierarchy()