testBackslashInString2() — netty Function Reference
Architecture documentation for the testBackslashInString2() function in JsonObjectDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c3b4ad2d_a7ab_1751_210f_671d0dfdd8b0["testBackslashInString2()"] 6e0a0e48_218c_0ee1_ac6e_2abf169a9f38["JsonObjectDecoderTest"] c3b4ad2d_a7ab_1751_210f_671d0dfdd8b0 -->|defined in| 6e0a0e48_218c_0ee1_ac6e_2abf169a9f38 style c3b4ad2d_a7ab_1751_210f_671d0dfdd8b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java lines 203–216
@Test
public void testBackslashInString2() {
EmbeddedChannel ch = new EmbeddedChannel(new JsonObjectDecoder());
// {"foo" : "bar\\"}
String json = "{\"foo\" : \"bar\\\\\"}";
ch.writeInbound(Unpooled.copiedBuffer(json, CharsetUtil.UTF_8));
ByteBuf res = ch.readInbound();
assertEquals(json, res.toString(CharsetUtil.UTF_8));
res.release();
assertFalse(ch.finish());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testBackslashInString2() do?
testBackslashInString2() is a function in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java.
Where is testBackslashInString2() defined?
testBackslashInString2() is defined in codec-base/src/test/java/io/netty/handler/codec/json/JsonObjectDecoderTest.java at line 203.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free