@@ -36,27 +36,24 @@ class SystemCommandExecutionTest extends InlineExpectationsTest {
3636class DecodingTest extends InlineExpectationsTest {
3737 DecodingTest ( ) { this = "DecodingTest" }
3838
39- override string getARelevantTag ( ) { result in [ "getAnInput" , "getOutput" , "getFormat" ] }
39+ override string getARelevantTag ( ) {
40+ result in [ "decodeInput" , "decodeOutput" , "decodeFormat" , "decodeUnsafe" ]
41+ }
4042
4143 override predicate hasActualResult ( Location location , string element , string tag , string value ) {
4244 exists ( location .getFile ( ) .getRelativePath ( ) ) and
43- exists ( Decoding d , string unsafe |
44- (
45- d .unsafe ( ) and unsafe = "UNSAFE_"
46- or
47- not d .unsafe ( ) and unsafe = ""
48- ) and
45+ exists ( Decoding d |
4946 (
5047 exists ( DataFlow:: Node data |
5148 location = data .getLocation ( ) and
5249 element = data .toString ( ) and
5350 value = value_from_expr ( data .asExpr ( ) ) and
5451 (
5552 data = d .getAnInput ( ) and
56- tag = unsafe + "getAnInput "
53+ tag = "decodeInput "
5754 or
5855 data = d .getOutput ( ) and
59- tag = unsafe + "getOutput "
56+ tag = "decodeOutput "
6057 )
6158 )
6259 or
@@ -65,8 +62,14 @@ class DecodingTest extends InlineExpectationsTest {
6562 element = format and
6663 value = format and
6764 format = d .getFormat ( ) and
68- tag = unsafe + "getFormat "
65+ tag = "decodeFormat "
6966 )
67+ or
68+ d .unsafe ( ) and
69+ location = d .getLocation ( ) and
70+ element = d .toString ( ) and
71+ value = "" and
72+ tag = "decodeUnsafe"
7073 )
7174 )
7275 }
0 commit comments