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

Method noPseudoHeaders

api/src/test/java/io/grpc/MetadataTest.java:119–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 Metadata.Key.of("immutable-bin", IMMUTABLE_FISH_MARSHALLER);
118
119 @Test
120 public void noPseudoHeaders() {
121 IllegalArgumentException e = assertThrows(IllegalArgumentException.class,
122 () -> Metadata.Key.of(":test-bin", FISH_MARSHALLER));
123 assertThat(e).hasMessageThat().isEqualTo("Invalid character ':' in key name ':test-bin'");
124 }
125
126 @Test
127 public void testMutations() {

Callers

nothing calls this directly

Calls 2

assertThrowsMethod · 0.80
ofMethod · 0.45

Tested by

no test coverage detected