Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
import com.google.protobuf.Timestamp;
import com.google.protobuf.UInt32Value;
import com.google.protobuf.UInt64Value;
import com.google.protobuf.UnredactedDebugFormatForTest;
import com.google.protobuf.Value;
import com.google.protobuf.util.JsonFormat;
import dev.cel.common.CelAbstractSyntaxTree;
Expand Down Expand Up @@ -212,7 +213,7 @@ private Object runTestInternal(
// pretty well for test purposes.
result = ((ByteString) result).toStringUtf8();
}
println("result: " + result);
println("result: " + UnredactedDebugFormatForTest.unredactedToString(result));
} catch (CelEvaluationException e) {
println("error: " + e.getMessage());
println("error_code: " + e.getErrorCode());
Expand Down Expand Up @@ -2313,7 +2314,7 @@ private void printBinding(Object input) {
if (value instanceof ByteString) {
sb.append(getHumanReadableString((ByteString) value));
} else {
sb.append(entry.getValue());
sb.append(UnredactedDebugFormatForTest.unredactedToString(entry.getValue()));
}
}
sb.append("}");
Expand Down Expand Up @@ -2352,7 +2353,7 @@ public Optional<Object> find(String name) {

@Override
public String toString() {
return map.toString();
return UnredactedDebugFormatForTest.unredactedToString(map);
}

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