File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
swift/ql/test/library-tests/dataflow/flowsources Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 7
7
| nsdata.swift:18:17:18:40 | call to init(contentsOf:) | external |
8
8
| nsdata.swift:19:17:19:17 | call to init(contentsOf:options:) | external |
9
9
| nsdata.swift:19:17:19:53 | call to init(contentsOf:options:) | external |
10
+ | data.swift:18:20:18:20 | call to init(contentsOf:options:) | external |
11
+ | data.swift:18:20:18:54 | call to init(contentsOf:options:) | external |
10
12
| string.swift:56:21:56:21 | call to init(contentsOf:) | external |
11
13
| string.swift:56:21:56:44 | call to init(contentsOf:) | external |
12
14
| string.swift:57:21:57:21 | call to init(contentsOf:encoding:) | external |
Original file line number Diff line number Diff line change
1
+ // --- stubs ---
2
+
3
+ struct URL
4
+ {
5
+ init ? ( string: String ) { }
6
+ }
7
+
8
+
9
+ struct Data {
10
+ struct ReadingOptions : OptionSet { let rawValue : Int }
11
+ init ( contentsOf: URL , options: ReadingOptions ) { }
12
+ }
13
+
14
+ // --- tests ---
15
+
16
+ func testData( ) {
17
+ let url = URL ( string: " http://example.com/ " )
18
+ let data = try Data ( contentsOf: url!, options: [ ] ) // SOURCE
19
+ }
You can’t perform that action at this time.
0 commit comments