Skip to content

Commit 3bf6818

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 764352398
1 parent 8139695 commit 3bf6818

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

testing/src/main/java/dev/cel/testing/BaseInterpreterTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import com.google.protobuf.Timestamp;
5454
import com.google.protobuf.UInt32Value;
5555
import com.google.protobuf.UInt64Value;
56+
import com.google.protobuf.UnredactedDebugFormatForTest;
5657
import com.google.protobuf.Value;
5758
import com.google.protobuf.util.JsonFormat;
5859
import dev.cel.common.CelAbstractSyntaxTree;
@@ -212,7 +213,7 @@ private Object runTestInternal(
212213
// pretty well for test purposes.
213214
result = ((ByteString) result).toStringUtf8();
214215
}
215-
println("result: " + result);
216+
println("result: " + UnredactedDebugFormatForTest.unredactedToString(result));
216217
} catch (CelEvaluationException e) {
217218
println("error: " + e.getMessage());
218219
println("error_code: " + e.getErrorCode());
@@ -2313,7 +2314,7 @@ private void printBinding(Object input) {
23132314
if (value instanceof ByteString) {
23142315
sb.append(getHumanReadableString((ByteString) value));
23152316
} else {
2316-
sb.append(entry.getValue());
2317+
sb.append(UnredactedDebugFormatForTest.unredactedToString(entry.getValue()));
23172318
}
23182319
}
23192320
sb.append("}");
@@ -2352,7 +2353,7 @@ public Optional<Object> find(String name) {
23522353

23532354
@Override
23542355
public String toString() {
2355-
return map.toString();
2356+
return UnredactedDebugFormatForTest.unredactedToString(map);
23562357
}
23572358

23582359
private TestOnlyVariableResolver(Map<String, ?> map) {

0 commit comments

Comments
 (0)