MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / test_unknown_event

Function test_unknown_event

virtio-devices/src/vsock/device.rs:923–935  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

921
922 #[test]
923 fn test_unknown_event() {
924 let test_ctx = TestContext::new();
925 let mut ctx = test_ctx.create_epoll_handler_context();
926
927 let events = epoll::Events::EPOLLIN;
928 let event = epoll::Event::new(events, 0xff);
929 let mut epoll_helper =
930 EpollHelper::new(&ctx.handler.kill_evt, &ctx.handler.pause_evt).unwrap();
931
932 ctx.handler
933 .handle_event(&mut epoll_helper, &event)
934 .expect_err("handle_event() should have failed");
935 }
936}

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
handle_eventMethod · 0.45

Tested by

no test coverage detected