@@ -15,7 +15,7 @@ class SystemCommandExecutionTest extends InlineExpectationsTest {
1515 command = sce .getCommand ( ) and
1616 location = command .getLocation ( ) and
1717 element = command .toString ( ) and
18- value = prettyExpr ( command . asExpr ( ) ) and
18+ value = prettyNodeForInlineTest ( command ) and
1919 tag = "getCommand"
2020 )
2121 }
@@ -34,7 +34,7 @@ class DecodingTest extends InlineExpectationsTest {
3434 exists ( DataFlow:: Node data |
3535 location = data .getLocation ( ) and
3636 element = data .toString ( ) and
37- value = prettyExpr ( data . asExpr ( ) ) and
37+ value = prettyNodeForInlineTest ( data ) and
3838 (
3939 data = d .getAnInput ( ) and
4040 tag = "decodeInput"
@@ -72,7 +72,7 @@ class EncodingTest extends InlineExpectationsTest {
7272 exists ( DataFlow:: Node data |
7373 location = data .getLocation ( ) and
7474 element = data .toString ( ) and
75- value = prettyExpr ( data . asExpr ( ) ) and
75+ value = prettyNodeForInlineTest ( data ) and
7676 (
7777 data = e .getAnInput ( ) and
7878 tag = "encodeInput"
@@ -105,7 +105,7 @@ class CodeExecutionTest extends InlineExpectationsTest {
105105 code = ce .getCode ( ) and
106106 location = code .getLocation ( ) and
107107 element = code .toString ( ) and
108- value = prettyExpr ( code . asExpr ( ) ) and
108+ value = prettyNodeForInlineTest ( code ) and
109109 tag = "getCode"
110110 )
111111 }
@@ -123,7 +123,7 @@ class SqlExecutionTest extends InlineExpectationsTest {
123123 sql = e .getSql ( ) and
124124 location = e .getLocation ( ) and
125125 element = sql .toString ( ) and
126- value = prettyExpr ( sql . asExpr ( ) ) and
126+ value = prettyNodeForInlineTest ( sql ) and
127127 tag = "getSql"
128128 )
129129 }
@@ -206,7 +206,7 @@ class HttpServerHttpResponseTest extends InlineExpectationsTest {
206206 exists ( HTTP:: Server:: HttpResponse response |
207207 location = response .getLocation ( ) and
208208 element = response .toString ( ) and
209- value = prettyExpr ( response .getBody ( ) . asExpr ( ) ) and
209+ value = prettyNodeForInlineTest ( response .getBody ( ) ) and
210210 tag = "responseBody"
211211 )
212212 or
@@ -245,7 +245,7 @@ class HttpServerHttpRedirectResponseTest extends InlineExpectationsTest {
245245 exists ( HTTP:: Server:: HttpRedirectResponse redirect |
246246 location = redirect .getLocation ( ) and
247247 element = redirect .toString ( ) and
248- value = prettyExpr ( redirect .getRedirectLocation ( ) . asExpr ( ) ) and
248+ value = prettyNodeForInlineTest ( redirect .getRedirectLocation ( ) ) and
249249 tag = "redirectLocation"
250250 )
251251 )
@@ -263,7 +263,7 @@ class FileSystemAccessTest extends InlineExpectationsTest {
263263 path = a .getAPathArgument ( ) and
264264 location = a .getLocation ( ) and
265265 element = path .toString ( ) and
266- value = prettyExpr ( path . asExpr ( ) ) and
266+ value = prettyNodeForInlineTest ( path ) and
267267 tag = "getAPathArgument"
268268 )
269269 }
@@ -297,7 +297,7 @@ class SafeAccessCheckTest extends InlineExpectationsTest {
297297 location = c .getLocation ( ) and
298298 (
299299 element = checks .toString ( ) and
300- value = prettyExpr ( checks . asExpr ( ) ) and
300+ value = prettyNodeForInlineTest ( checks ) and
301301 tag = "checks"
302302 or
303303 element = branch .toString ( ) and
0 commit comments