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:
parent
ec8db837fb
commit
ae694f44ef
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user