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

Method invalidKeyName

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

Source from the content-addressed store, hash-verified

373 }
374
375 @Test
376 public void invalidKeyName() {
377 try {
378 Metadata.Key.of("io.grpc/key1", Metadata.ASCII_STRING_MARSHALLER);
379 fail("Should have thrown");
380 } catch (IllegalArgumentException e) {
381 assertEquals("Invalid character '/' in key name 'io.grpc/key1'", e.getMessage());
382 }
383 }
384
385 @Test
386 public void streamedValue() {

Callers

nothing calls this directly

Calls 3

assertEqualsMethod · 0.80
ofMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected