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

Method toString

api/src/testFixtures/java/io/grpc/StatusMatcher.java:79–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 @Override
80 public String toString() {
81 StringBuilder sb = new StringBuilder();
82 sb.append("{code=");
83 sb.append(codeMatcher);
84 if (descriptionMatcher != null) {
85 sb.append(", description=");
86 sb.append(descriptionMatcher);
87 }
88 if (causeMatcher != null) {
89 sb.append(", cause=");
90 sb.append(causeMatcher);
91 }
92 sb.append("}");
93 return sb.toString();
94 }
95
96 // Use instead of lambda for better error message.
97 static final class EqualsMatcher<T> implements ArgumentMatcher<T> {

Callers 3

streamMethod · 0.45
testMethodsForwardedMethod · 0.45
toStringMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected