Browse Source

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

netuttki 1 năm trước cách đây
mục cha
commit
87950b1c3b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 = ''