Swift: Hide locationless results in the inlineexpectations test (there's no way to make them expected).

This commit is contained in:
Geoffrey White
2023-05-02 16:57:29 +01:00
parent 664500d2e6
commit ca50f1117e
2 changed files with 1 additions and 1 deletions

View File

@@ -1 +0,0 @@
| file://:0:0:0:0 | self | Unexpected result: hasPathInjection=208 |

View File

@@ -19,6 +19,7 @@ class PathInjectionTest extends InlineExpectationsTest {
location = sinkExpr.getLocation() and
element = sinkExpr.toString() and
tag = "hasPathInjection" and
location.getFile().getName() != "" and
value = source.asExpr().getLocation().getStartLine().toString()
)
}