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

Method duplicates

api/src/test/java/io/grpc/AttributesTest.java:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 @Test
42 public void duplicates() {
43 Attributes attrs = Attributes.newBuilder()
44 .set(YOLO_KEY, "To be?")
45 .set(YOLO_KEY, "Or not to be?")
46 .set(Attributes.Key.create("yolo"), "I'm not a duplicate")
47 .build();
48 assertThat(attrs.get(YOLO_KEY)).isEqualTo("Or not to be?");
49 assertThat(attrs.keysForTest()).hasSize(2);
50 }
51
52 @Test
53 public void toBuilder() {

Callers

nothing calls this directly

Calls 6

newBuilderMethod · 0.95
getMethod · 0.95
keysForTestMethod · 0.95
buildMethod · 0.65
setMethod · 0.65
createMethod · 0.65

Tested by

no test coverage detected