Files
codeql/java/ql/test/library-tests/xml/XMLTest.ql
2022-08-22 14:08:31 +02:00

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 = ""
)
}
}