1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#[cfg(test)]
mod tests {
    use crate::qqwry;
    #[test]
    fn it_works() {
       let mut wry = qqwry::QQWry::from(String::from("/Users/zfh/Documents/qqwry.dat"));
       let location = wry.read_ip_location("255.255.255.255").unwrap();
        println!("{:#?},start_ip:{},end_ip:{}",location,location.get_start_ip_str(),location.get_end_ip_str());
    }
}

pub mod qqwry;