Merge pull request #11767 from atorralba/atorralba/java/fix-pinning-tests

Java: Small simplification in Missing Certificate Pinning tests
This commit is contained in:
Edward Minnix III
2022-12-21 11:21:47 -05:00
committed by GitHub
4 changed files with 4 additions and 20 deletions

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and
el = node.toString() and
value = "" and
(
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
)
}
}

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and
el = node.toString() and
value = "" and
(
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
)
}
}

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and
el = node.toString() and
value = "" and
(
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
)
}
}

View File

@@ -13,11 +13,7 @@ class Test extends InlineExpectationsTest {
loc = node.getLocation() and
el = node.toString() and
value = "" and
(
if exists(string x | trustedDomain(x))
then tag = "hasUntrustedResult"
else tag = "hasNoTrustedResult"
)
if trustedDomain(_) then tag = "hasUntrustedResult" else tag = "hasNoTrustedResult"
)
}
}