We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b307828 commit c873275Copy full SHA for c873275
tests/script/test_script.py
@@ -230,6 +230,22 @@ def testMethodGetXrefFrom(QUARK_ANALYSIS_RESULT):
230
def testgetAllStrings(QUARK_ANALYSIS_RESULT):
231
assert len(QUARK_ANALYSIS_RESULT.getAllStrings()) == 1005
232
233
+ @staticmethod
234
+ def testfindMethodInCaller(QUARK_ANALYSIS_RESULT):
235
+ callerMethod = [
236
+ "Lcom/google/progress/WifiCheckTask;",
237
+ "checkWifiCanOrNotConnectServer",
238
+ "([Ljava/lang/String;)Z",
239
+ ]
240
+ targetMethod = [
241
+ "Landroid/util/Log;",
242
+ "e",
243
+ "(Ljava/lang/String; Ljava/lang/String;)I",
244
245
+
246
+ assert QUARK_ANALYSIS_RESULT.findMethodInCaller(
247
+ callerMethod, targetMethod)
248
249
250
def testRunQuarkAnalysis(SAMPLE_PATH):
251
ruleset = Ruleset(RULE_FOLDER_PATH)
0 commit comments