MCPcopy Index your code
hub / github.com/grpc/grpc-java / mutation

Method mutation

api/src/test/java/io/grpc/CallOptionsTest.java:122–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 @Test
123 public void mutation() {
124 Deadline deadline = Deadline.after(10, SECONDS);
125 CallOptions options1 = CallOptions.DEFAULT.withDeadline(deadline);
126 assertThat(CallOptions.DEFAULT.getDeadline()).isNull();
127 assertThat(deadline).isSameInstanceAs(options1.getDeadline());
128
129 CallOptions options2 = options1.withDeadline(null);
130 assertThat(deadline).isSameInstanceAs(options1.getDeadline());
131 assertThat(options2.getDeadline()).isNull();
132 }
133
134 @Test
135 public void mutateExecutor() {

Callers

nothing calls this directly

Calls 5

afterMethod · 0.95
getDeadlineMethod · 0.95
withDeadlineMethod · 0.95
withDeadlineMethod · 0.45
getDeadlineMethod · 0.45

Tested by

no test coverage detected