mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
20 lines
350 B
Swift
20 lines
350 B
Swift
// --- 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=remote
|
|
}
|