1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#![cfg(test)] use std::fs; use std::path::Path; use super::super::OSMReader; use super::PBFReader; #[test] fn test_file() { //let file = fs::File::open(&Path::new("/home/rory/code/rust/osmio/monaco-latest.osm.pbf")).unwrap(); //let mut reader = PBFReader::new(file); //for obj in reader.objects() { // //println!("{:?}", obj); //} }