Swift: Fix inline expectations.

This commit is contained in:
Geoffrey White
2023-04-18 17:32:38 +01:00
parent 9ecba6a94d
commit c7ea08aa73
2 changed files with 4 additions and 6 deletions

View File

@@ -1,2 +0,0 @@
| testPathInjection.swift:314:35:314:35 | remoteUrl | Unexpected result: hasPathInjection=208 |
| testPathInjection.swift:316:40:316:40 | remoteUrl | Unexpected result: hasPathInjection=208 |

View File

@@ -311,15 +311,15 @@ func test() {
// Realm
_ = Realm.Configuration(fileURL: safeUrl) // GOOD
_ = Realm.Configuration(fileURL: remoteUrl) // BAD
_ = Realm.Configuration(fileURL: remoteUrl) // $ hasPathInjection=208
_ = Realm.Configuration(seedFilePath: safeUrl) // GOOD
_ = Realm.Configuration(seedFilePath: remoteUrl) // BAD
_ = Realm.Configuration(seedFilePath: remoteUrl) // $ hasPathInjection=208
var config = Realm.Configuration() // GOOD
config.fileURL = safeUrl // GOOD
config.fileURL = remoteUrl // BAD [NOT DETECTED]
config.fileURL = remoteUrl // $ MISSING: hasPathInjection=208
config.seedFilePath = safeUrl // GOOD
config.seedFilePath = remoteUrl // BAD [NOT DETECTED]
config.seedFilePath = remoteUrl // $ MISSING: hasPathInjection=208
}
func testSanitizers() {