Procházet zdrojové kódy

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

netuttki před 11 měsíci
rodič
revize
87950b1c3b
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  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 = ''