Преглед изворни кода

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

netuttki пре 10 месеци
родитељ
комит
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 = ''