File tree Expand file tree Collapse file tree
swift/ql/test/library-tests/dataflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ func foo() -> Int {
7575 let r = { x }
7676 sink ( r ( ) ) // $ MISSING: hasValueFlow=foo
7777 f ( 1 )
78- return r ( ) // $ MISSING: hasTaintFlow=foo
78+ return r ( )
7979}
8080
8181func bar( ) -> ( ) -> Int {
@@ -151,35 +151,3 @@ func simplestTest() {
151151 let x = source ( " simplestTest " , 0 )
152152 sink ( x) // $ hasValueFlow=simplestTest
153153}
154-
155- func main( ) {
156- print ( " captureList(): " )
157- captureList ( ) // Hello world! 123
158-
159- print ( " callEscape(): " )
160- callEscape ( ) // 1
161-
162- print ( " logical(): " , logical ( ) ) // true
163-
164- print ( " asyncTest(): " )
165- asyncTest ( ) // 42
166-
167- print ( " foo(): " , foo ( ) ) // 42
168-
169- let a = bar ( )
170- let b = baz ( )
171-
172- print ( " bar(): " , a ( ) , a ( ) ) // $ MISSING: hasTaintFlow=bar
173-
174- print ( " baz(): " , b ( ) , b ( ) ) // $ MISSING: hasTaintFlow=baz
175-
176- g!( 1 )
177- print ( " g!(1): " , b ( ) , b ( ) ) // $ MISSING: hasTaintFlow=baz
178-
179- print ( " sharedCapture(): " , sharedCapture ( ) ) // 4
180-
181- print ( " sharedCaptureMultipleWriters(): " )
182- sharedCaptureMultipleWriters ( ) // 42, -1
183- }
184-
185- main ( )
Original file line number Diff line number Diff line change 1- failures
21testFailures
2+ failures
You can’t perform that action at this time.
0 commit comments