()
| 753 | |
| 754 | #[test] |
| 755 | fn test_set_options() { |
| 756 | let _tap_ip_guard = TAP_IP_LOCK.lock().unwrap(); |
| 757 | |
| 758 | // This line will fail to provide an initialized FD if the test is not run as root. |
| 759 | let tap = Tap::new(1).unwrap(); |
| 760 | tap.set_vnet_hdr_size(16).unwrap(); |
| 761 | tap.set_offload(0).unwrap(); |
| 762 | } |
| 763 | |
| 764 | #[test] |
| 765 | fn test_tap_enable() { |
nothing calls this directly
no test coverage detected