summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-06 23:18:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-06 23:18:51 (GMT)
commitfa2ac321528fbba5fa9eb15ee6ae87803fb54bb3 (patch)
treebad1ba1bfce03ba0d5f478ea298cb6ae08350681 /tests
parent453825b9435ec5740fcada42cebe246325a07c37 (diff)
Reject calls on non callable expressions softly (and fix a little coding mistake).
Diffstat (limited to 'tests')
-rw-r--r--tests/analysis/scan/fuzzing.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/analysis/scan/fuzzing.py b/tests/analysis/scan/fuzzing.py
index 6eecac9..d5fce4b 100644
--- a/tests/analysis/scan/fuzzing.py
+++ b/tests/analysis/scan/fuzzing.py
@@ -78,3 +78,18 @@ rule test {
'''
self.check_rule_failure(rule)
+
+
+ def testCallOnNonCallable(self):
+ """Reject calls on non callable expressions softly."""
+
+ rule = '''
+rule test {
+
+ condition:
+ console.log().log()
+
+}
+'''
+
+ self.check_rule_failure(rule)