src/tools/procfs.rs: add tests for read_proc_net_route() and read_proc_net_ipv6_route()

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2019-04-23 17:04:31 +02:00 committed by Dietmar Maurer
parent ec8db837fb
commit ae694f44ef
1 changed files with 15 additions and 0 deletions

View File

@ -405,3 +405,18 @@ pub fn read_proc_net_ipv6_route() -> Result<Vec<ProcFsNetIPv6Route>, Error> {
Ok(result)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_read_proc_net_route() {
read_proc_net_route().unwrap();
}
#[test]
fn test_read_proc_net_ipv6_route() {
read_proc_net_ipv6_route().unwrap();
}
}