use netring::{Capture, Error};
#[test]
fn interface_not_found() {
let err = Capture::open("nonexistent_iface_xyz_42").unwrap_err();
match err {
Error::InterfaceNotFound(name) => assert_eq!(name, "nonexistent_iface_xyz_42"),
Error::PermissionDenied => {} other => panic!("unexpected error: {other}"),
}
}