From 48d96e431320d576e12da0ae808e19c6e62e3548 Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Mon, 19 May 2025 12:22:36 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 760724894 --- .../test/java/dev/cel/parser/CelParserParameterizedTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/src/test/java/dev/cel/parser/CelParserParameterizedTest.java b/parser/src/test/java/dev/cel/parser/CelParserParameterizedTest.java index 1a83c3127..0e4490aa6 100644 --- a/parser/src/test/java/dev/cel/parser/CelParserParameterizedTest.java +++ b/parser/src/test/java/dev/cel/parser/CelParserParameterizedTest.java @@ -31,6 +31,7 @@ import com.google.protobuf.Descriptors.EnumDescriptor; import com.google.protobuf.Descriptors.FieldDescriptor; import com.google.protobuf.Descriptors.OneofDescriptor; +import com.google.protobuf.TextFormat; import com.google.testing.junit.testparameterinjector.TestParameterInjector; import dev.cel.common.CelAbstractSyntaxTree; import dev.cel.common.CelOptions; @@ -354,7 +355,7 @@ private void runSourceInfoTest(String expression) throws Exception { CelProtoAbstractSyntaxTree.fromCelAst(ast).toParsedExpr().getSourceInfo(); testOutput().println("I: " + expression); testOutput().println("=====>"); - testOutput().println("S: " + sourceInfo); + testOutput().println("S: " + TextFormat.printer().printToString(sourceInfo)); } private String convertMacroCallsToString(SourceInfo sourceInfo) {