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

Method compareTo_less

api/src/test/java/io/grpc/DeadlineTest.java:263–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 }
262
263 @Test
264 public void compareTo_less() {
265 Deadline d1 = Deadline.after(10, TimeUnit.SECONDS, ticker);
266 ticker.increment(1, TimeUnit.NANOSECONDS);
267 Deadline d2 = Deadline.after(10, TimeUnit.SECONDS, ticker);
268 Truth.assertThat(d1).isLessThan(d2);
269 }
270
271 @Test
272 public void compareTo_same() {

Callers

nothing calls this directly

Calls 2

afterMethod · 0.95
incrementMethod · 0.45

Tested by

no test coverage detected