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

Method equal

api/src/test/java/io/grpc/CallOptionsTest.java:270–274  ·  view source on GitHub ↗
(CallOptions o1, CallOptions o2)

Source from the content-addressed store, hash-verified

268 // Only used in noStrayModifications()
269 // TODO(carl-mastrangelo): consider making a CallOptionsSubject for Truth.
270 private static boolean equal(CallOptions o1, CallOptions o2) {
271 return Objects.equal(o1.getDeadline(), o2.getDeadline())
272 && Objects.equal(o1.getAuthority(), o2.getAuthority())
273 && Objects.equal(o1.getCredentials(), o2.getCredentials());
274 }
275
276 private static class FakeTicker extends Deadline.Ticker {
277 private long time;

Callers 11

noStrayModificationsMethod · 0.95
equalsMethod · 0.45
equalsMethod · 0.45
equalsMethod · 0.45
equalsMethod · 0.45
equalsMethod · 0.45
withCauseMethod · 0.45
withDescriptionMethod · 0.45
equalsMethod · 0.45
equalsMethod · 0.45
equalsMethod · 0.45

Calls 3

getCredentialsMethod · 0.80
getAuthorityMethod · 0.65
getDeadlineMethod · 0.45

Tested by

no test coverage detected