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

Method discard_noBase

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

Source from the content-addressed store, hash-verified

103 }
104
105 @Test
106 public void discard_noBase() {
107 Attributes.Builder attrs = Attributes.newBuilder().set(YOLO_KEY, "value");
108
109 Attributes newAttrs = attrs.discard(YOLO_KEY).build();
110 assertNull(newAttrs.get(YOLO_KEY));
111 assertThat(newAttrs.keysForTest()).doesNotContain(YOLO_KEY);
112 }
113
114 @Test
115 public void discard_baseAttributesAndBuilder() {

Callers

nothing calls this directly

Calls 6

newBuilderMethod · 0.95
getMethod · 0.95
keysForTestMethod · 0.95
discardMethod · 0.80
setMethod · 0.65
buildMethod · 0.65

Tested by

no test coverage detected