|
53 | 53 | import com.google.protobuf.Timestamp; |
54 | 54 | import com.google.protobuf.UInt32Value; |
55 | 55 | import com.google.protobuf.UInt64Value; |
| 56 | +import com.google.protobuf.UnredactedDebugFormatForTest; |
56 | 57 | import com.google.protobuf.Value; |
57 | 58 | import com.google.protobuf.util.JsonFormat; |
58 | 59 | import dev.cel.common.CelAbstractSyntaxTree; |
@@ -212,7 +213,7 @@ private Object runTestInternal( |
212 | 213 | // pretty well for test purposes. |
213 | 214 | result = ((ByteString) result).toStringUtf8(); |
214 | 215 | } |
215 | | - println("result: " + result); |
| 216 | + println("result: " + UnredactedDebugFormatForTest.unredactedToString(result)); |
216 | 217 | } catch (CelEvaluationException e) { |
217 | 218 | println("error: " + e.getMessage()); |
218 | 219 | println("error_code: " + e.getErrorCode()); |
@@ -2313,7 +2314,7 @@ private void printBinding(Object input) { |
2313 | 2314 | if (value instanceof ByteString) { |
2314 | 2315 | sb.append(getHumanReadableString((ByteString) value)); |
2315 | 2316 | } else { |
2316 | | - sb.append(entry.getValue()); |
| 2317 | + sb.append(UnredactedDebugFormatForTest.unredactedToString(entry.getValue())); |
2317 | 2318 | } |
2318 | 2319 | } |
2319 | 2320 | sb.append("}"); |
@@ -2352,7 +2353,7 @@ public Optional<Object> find(String name) { |
2352 | 2353 |
|
2353 | 2354 | @Override |
2354 | 2355 | public String toString() { |
2355 | | - return map.toString(); |
| 2356 | + return UnredactedDebugFormatForTest.unredactedToString(map); |
2356 | 2357 | } |
2357 | 2358 |
|
2358 | 2359 | private TestOnlyVariableResolver(Map<String, ?> map) { |
|
0 commit comments