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

Method discard_empty

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

Source from the content-addressed store, hash-verified

122 }
123
124 @Test
125 public void discard_empty() {
126 Attributes newAttrs = Attributes.EMPTY.toBuilder().discard(YOLO_KEY).build();
127
128 assertNull(newAttrs.get(YOLO_KEY));
129 assertThat(newAttrs.keysForTest()).doesNotContain(YOLO_KEY);
130 }
131}

Callers

nothing calls this directly

Calls 5

getMethod · 0.95
keysForTestMethod · 0.95
discardMethod · 0.80
buildMethod · 0.65
toBuilderMethod · 0.45

Tested by

no test coverage detected