use pdb2 as pdb; #[test] fn pdb_info() { let file = std::fs::File::open("fixtures/self/foo.pdb").expect("opening file"); let mut pdb = pdb::PDB::open(file).expect("opening pdb"); let pdb_info = pdb.pdb_information().expect("pdb information"); assert_eq!(pdb_info.age, 2); assert_eq!( pdb_info.guid, "2B3C3FA5-5A2E-44B8-8BBA-C3300FF69F62".parse().unwrap(), ); assert_eq!(pdb_info.signature, 0x587B_A621); }