mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
18 lines
474 B
Plaintext
18 lines
474 B
Plaintext
import semmle.code.xml.XML
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class XmlTest extends InlineExpectationsTest {
|
|
XmlTest() { this = "XmlTest" }
|
|
|
|
override string getARelevantTag() { result = "hasXmlResult" }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "hasXmlResult" and
|
|
exists(XmlAttribute a |
|
|
a.getLocation() = location and
|
|
element = a.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|