testSkipNotSupported() — netty Function Reference
Architecture documentation for the testSkipNotSupported() function in IoUringIoHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e38057e4_203a_dc39_3fd0_72872c61c302["testSkipNotSupported()"] a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d["IoUringIoHandlerTest"] e38057e4_203a_dc39_3fd0_72872c61c302 -->|defined in| a5c22e87_b6d0_cf88_f1c4_d3668b78fb7d style e38057e4_203a_dc39_3fd0_72872c61c302 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java lines 65–99
@Test
public void testSkipNotSupported() throws Exception {
IoHandlerFactory ioHandlerFactory = IoUringIoHandler.newFactory();
IoHandler handler = ioHandlerFactory.newHandler(new ThreadAwareExecutor() {
@Override
public boolean isExecutorThread(Thread thread) {
return true;
}
@Override
public void execute(Runnable command) {
command.run();
}
});
handler.initialize();
IoRegistration registration = handler.register(new IoUringIoHandle() {
@Override
public void handle(IoRegistration registration, IoEvent ioEvent) {
fail();
}
@Override
public void close() {
// Noop
}
});
assertThrows(IllegalArgumentException.class, () ->
registration.submit(new IoUringIoOps(Native.IORING_OP_NOP, (byte) Native.IOSQE_CQE_SKIP_SUCCESS,
(short) 0, -1, 0, 0, 0, 0, (short) 0, (short) 0, (short) 0, 0, 0)));
assertTrue(registration.cancel());
assertFalse(registration.isValid());
handler.prepareToDestroy();
handler.destroy();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testSkipNotSupported() do?
testSkipNotSupported() is a function in the netty codebase, defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java.
Where is testSkipNotSupported() defined?
testSkipNotSupported() is defined in transport-native-io_uring/src/test/java/io/netty/channel/uring/IoUringIoHandlerTest.java at line 65.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free