Skip to content

Commit 6d43db4

Browse files
committed
Ruby: Fix tag missing from getARelevantTag
1 parent 9777920 commit 6d43db4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CustomEntryPointUse extends API::EntryPoint {
2020
class ApiUseTest extends InlineExpectationsTest {
2121
ApiUseTest() { this = "ApiUseTest" }
2222

23-
override string getARelevantTag() { result = ["use", "def"] }
23+
override string getARelevantTag() { result = ["use", "def", "call"] }
2424

2525
private predicate relevantNode(API::Node a, DataFlow::Node n, Location l, string tag) {
2626
l = n.getLocation() and

ruby/ql/test/query-tests/experimental/improper-memoization/ImproperMemoization.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import codeql.ruby.security.ImproperMemoizationQuery
55
class ImproperMemoizationTest extends InlineExpectationsTest {
66
ImproperMemoizationTest() { this = "ImproperMemoizationTest" }
77

8-
override string getARelevantTag() { result = "BAD" }
8+
override string getARelevantTag() { result = "result" }
99

1010
override predicate hasActualResult(Location location, string element, string tag, string value) {
1111
tag = "result" and

ruby/ql/test/query-tests/security/cwe-300/InsecureDependency.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import codeql.ruby.security.InsecureDependencyQuery
55
class InsecureDependencyTest extends InlineExpectationsTest {
66
InsecureDependencyTest() { this = "InsecureDependencyTest" }
77

8-
override string getARelevantTag() { result = "BAD" }
8+
override string getARelevantTag() { result = "result" }
99

1010
override predicate hasActualResult(Location location, string element, string tag, string value) {
1111
tag = "result" and

0 commit comments

Comments
 (0)