Skip to content

Commit 6bed50a

Browse files
committed
Rename predicate with snake cased name
1 parent b2be1c3 commit 6bed50a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • ql/test/library-tests/dataflow/api-graphs

ql/test/library-tests/dataflow/api-graphs/use.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ class ApiUseTest extends InlineExpectationsTest {
88

99
override string getARelevantTag() { result = "use" }
1010

11-
private predicate relevant_node(API::Node a, DataFlow::Node n, Location l) {
11+
private predicate relevantNode(API::Node a, DataFlow::Node n, Location l) {
1212
n = a.getAUse() and
1313
l = n.getLocation()
1414
}
1515

1616
override predicate hasActualResult(Location location, string element, string tag, string value) {
17-
exists(API::Node a, DataFlow::Node n | relevant_node(a, n, location) |
17+
exists(API::Node a, DataFlow::Node n | relevantNode(a, n, location) |
1818
tag = "use" and
1919
// Only report the longest path on this line:
2020
value =
2121
max(API::Node a2, Location l2, DataFlow::Node n2 |
22-
relevant_node(a2, n2, l2) and
22+
relevantNode(a2, n2, l2) and
2323
l2.getFile() = location.getFile() and
2424
l2.getStartLine() = location.getStartLine()
2525
|

0 commit comments

Comments
 (0)