MCPcopy Create free account
hub / github.com/grpc/grpc-java / metadataEncode_percent

Method metadataEncode_percent

api/src/test/java/io/grpc/StatusTest.java:71–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 @Test
72 public void metadataEncode_percent() {
73 byte[] b = Status.MESSAGE_KEY.toBytes("my favorite character is %");
74 assertEquals("my favorite character is %25", new String(b, ascii));
75 }
76
77 @Test
78 public void metadataEncode_surrogatePair() {

Callers

nothing calls this directly

Calls 2

assertEqualsMethod · 0.80
toBytesMethod · 0.65

Tested by

no test coverage detected