From 6bed50a86b42e12ee60238cb39c3540ea4d449a0 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Thu, 24 Jun 2021 11:59:13 +0200 Subject: [PATCH] Rename predicate with snake cased name --- ql/test/library-tests/dataflow/api-graphs/use.ql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ql/test/library-tests/dataflow/api-graphs/use.ql b/ql/test/library-tests/dataflow/api-graphs/use.ql index c8a2f45d265..41c01b4e517 100644 --- a/ql/test/library-tests/dataflow/api-graphs/use.ql +++ b/ql/test/library-tests/dataflow/api-graphs/use.ql @@ -8,18 +8,18 @@ class ApiUseTest extends InlineExpectationsTest { override string getARelevantTag() { result = "use" } - private predicate relevant_node(API::Node a, DataFlow::Node n, Location l) { + private predicate relevantNode(API::Node a, DataFlow::Node n, Location l) { n = a.getAUse() and l = n.getLocation() } override predicate hasActualResult(Location location, string element, string tag, string value) { - exists(API::Node a, DataFlow::Node n | relevant_node(a, n, location) | + exists(API::Node a, DataFlow::Node n | relevantNode(a, n, location) | tag = "use" and // Only report the longest path on this line: value = max(API::Node a2, Location l2, DataFlow::Node n2 | - relevant_node(a2, n2, l2) and + relevantNode(a2, n2, l2) and l2.getFile() = location.getFile() and l2.getStartLine() = location.getStartLine() |