@@ -15,7 +15,7 @@ class SystemCommandExecutionTest extends InlineExpectationsTest {
15
15
command = sce .getCommand ( ) and
16
16
location = command .getLocation ( ) and
17
17
element = command .toString ( ) and
18
- value = prettyExpr ( command . asExpr ( ) ) and
18
+ value = prettyNodeForInlineTest ( command ) and
19
19
tag = "getCommand"
20
20
)
21
21
}
@@ -34,7 +34,7 @@ class DecodingTest extends InlineExpectationsTest {
34
34
exists ( DataFlow:: Node data |
35
35
location = data .getLocation ( ) and
36
36
element = data .toString ( ) and
37
- value = prettyExpr ( data . asExpr ( ) ) and
37
+ value = prettyNodeForInlineTest ( data ) and
38
38
(
39
39
data = d .getAnInput ( ) and
40
40
tag = "decodeInput"
@@ -72,7 +72,7 @@ class EncodingTest extends InlineExpectationsTest {
72
72
exists ( DataFlow:: Node data |
73
73
location = data .getLocation ( ) and
74
74
element = data .toString ( ) and
75
- value = prettyExpr ( data . asExpr ( ) ) and
75
+ value = prettyNodeForInlineTest ( data ) and
76
76
(
77
77
data = e .getAnInput ( ) and
78
78
tag = "encodeInput"
@@ -105,7 +105,7 @@ class CodeExecutionTest extends InlineExpectationsTest {
105
105
code = ce .getCode ( ) and
106
106
location = code .getLocation ( ) and
107
107
element = code .toString ( ) and
108
- value = prettyExpr ( code . asExpr ( ) ) and
108
+ value = prettyNodeForInlineTest ( code ) and
109
109
tag = "getCode"
110
110
)
111
111
}
@@ -123,7 +123,7 @@ class SqlExecutionTest extends InlineExpectationsTest {
123
123
sql = e .getSql ( ) and
124
124
location = e .getLocation ( ) and
125
125
element = sql .toString ( ) and
126
- value = prettyExpr ( sql . asExpr ( ) ) and
126
+ value = prettyNodeForInlineTest ( sql ) and
127
127
tag = "getSql"
128
128
)
129
129
}
@@ -206,7 +206,7 @@ class HttpServerHttpResponseTest extends InlineExpectationsTest {
206
206
exists ( HTTP:: Server:: HttpResponse response |
207
207
location = response .getLocation ( ) and
208
208
element = response .toString ( ) and
209
- value = prettyExpr ( response .getBody ( ) . asExpr ( ) ) and
209
+ value = prettyNodeForInlineTest ( response .getBody ( ) ) and
210
210
tag = "responseBody"
211
211
)
212
212
or
@@ -245,7 +245,7 @@ class HttpServerHttpRedirectResponseTest extends InlineExpectationsTest {
245
245
exists ( HTTP:: Server:: HttpRedirectResponse redirect |
246
246
location = redirect .getLocation ( ) and
247
247
element = redirect .toString ( ) and
248
- value = prettyExpr ( redirect .getRedirectLocation ( ) . asExpr ( ) ) and
248
+ value = prettyNodeForInlineTest ( redirect .getRedirectLocation ( ) ) and
249
249
tag = "redirectLocation"
250
250
)
251
251
)
@@ -263,7 +263,7 @@ class FileSystemAccessTest extends InlineExpectationsTest {
263
263
path = a .getAPathArgument ( ) and
264
264
location = a .getLocation ( ) and
265
265
element = path .toString ( ) and
266
- value = prettyExpr ( path . asExpr ( ) ) and
266
+ value = prettyNodeForInlineTest ( path ) and
267
267
tag = "getAPathArgument"
268
268
)
269
269
}
@@ -297,7 +297,7 @@ class SafeAccessCheckTest extends InlineExpectationsTest {
297
297
location = c .getLocation ( ) and
298
298
(
299
299
element = checks .toString ( ) and
300
- value = prettyExpr ( checks . asExpr ( ) ) and
300
+ value = prettyNodeForInlineTest ( checks ) and
301
301
tag = "checks"
302
302
or
303
303
element = branch .toString ( ) and
0 commit comments