This commit is contained in:
Tony Torralba 2022-11-21 16:16:58 +01:00
Родитель d6b14a1395
Коммит 6a8b9fde78
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -7,6 +7,8 @@
| nsdata.swift:18:17:18:40 | call to init(contentsOf:) | external | | nsdata.swift:18:17:18:40 | call to init(contentsOf:) | external |
| nsdata.swift:19:17:19:17 | call to init(contentsOf:options:) | external | | nsdata.swift:19:17:19:17 | call to init(contentsOf:options:) | external |
| nsdata.swift:19:17:19:53 | call to init(contentsOf:options:) | external | | nsdata.swift:19:17:19:53 | call to init(contentsOf:options:) | external |
| data.swift:18:20:18:20 | call to init(contentsOf:options:) | external |
| data.swift:18:20:18:54 | call to init(contentsOf:options:) | external |
| string.swift:56:21:56:21 | call to init(contentsOf:) | external | | string.swift:56:21:56:21 | call to init(contentsOf:) | external |
| string.swift:56:21:56:44 | call to init(contentsOf:) | external | | string.swift:56:21:56:44 | call to init(contentsOf:) | external |
| string.swift:57:21:57:21 | call to init(contentsOf:encoding:) | external | | string.swift:57:21:57:21 | call to init(contentsOf:encoding:) | external |

Просмотреть файл

@ -0,0 +1,19 @@
// --- stubs ---
struct URL
{
init?(string: String) {}
}
struct Data {
struct ReadingOptions : OptionSet { let rawValue: Int }
init(contentsOf: URL, options: ReadingOptions) {}
}
// --- tests ---
func testData() {
let url = URL(string: "http://example.com/")
let data = try Data(contentsOf: url!, options: []) // SOURCE
}