Ver código fonte

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

netuttki 1 ano atrás
pai
commit
87950b1c3b
1 arquivos alterados com 4 adições e 0 exclusões
  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 = ''