mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
434 B
Plaintext
18 lines
434 B
Plaintext
import semmle.code.xml.XML
|
|
import utils.test.InlineExpectationsTest
|
|
|
|
module XmlTest implements TestSig {
|
|
string getARelevantTag() { result = "hasXmlResult" }
|
|
|
|
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 = ""
|
|
)
|
|
}
|
|
}
|
|
|
|
import MakeTest<XmlTest>
|