瀏覽代碼

Added the code to create th valid location:$args[0] pairs file for test

netuttki 11 月之前
父節點
當前提交
87950b1c3b
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tools/callvalidator.py

+ 4 - 0
tools/callvalidator.py

@@ -238,6 +238,10 @@ with open('valid-calls-by-location.txt', 'w', encoding='utf-8') as ofile:
             currLoc = call['location']
         ofile.write("    '%s': Commented Line: %s\n" % (call['function'], call['isCommentLine']))
 
+with open('validcallsfortesting.txt', 'w', encoding='utf-8') as ofile:
+    for call in validLocationCalls:
+        if not call['isCommentLine']: ofile.write("%s:%s\n" % (call['location'], call['function'])) 
+
 with open('valid-calls-by-location.md', 'w', encoding='utf-8') as ofile:
     ofile.write("## Valid Calls per Location")
     currLoc = ''