summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-07-12 17:00:38 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-16 17:04:59 -0300
commit92186556036f727d6caf742e558880ad3eec19e3 (patch)
tree9d94ee093d7818c3704a9e8d234b8bb066945cf0
parente49d60cf35e73663bc748fcf511e1a373f0e9416 (diff)
tct: Filter out protected methods
-rw-r--r--src/scripts/testgen/suitegen.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/scripts/testgen/suitegen.py b/src/scripts/testgen/suitegen.py
index 5811c0af9e..cdae677052 100644
--- a/src/scripts/testgen/suitegen.py
+++ b/src/scripts/testgen/suitegen.py
@@ -1,6 +1,6 @@
1import itertools 1import itertools
2import os 2import os
3from pyolian.eolian import Eolian_Function_Type, Eolian_Class_Type 3from pyolian.eolian import Eolian_Function_Type, Eolian_Class_Type, Eolian_Object_Scope
4from .ekeys import GetKey, Function_List_Type 4from .ekeys import GetKey, Function_List_Type
5from pyolian import eolian 5from pyolian import eolian
6 6
@@ -99,10 +99,17 @@ class ClassItem(ComItem):
99 self.myname = os.path.splitext(comp.file)[0] 99 self.myname = os.path.splitext(comp.file)[0]
100 super().__init__(comp, os.path.join(path, self.myname), keys) 100 super().__init__(comp, os.path.join(path, self.myname), keys)
101 101
102 mfilter = ( 102 def mfilter(f):
103 lambda f: f.full_c_method_name not in self.keys.blacklist 103 if f.full_c_method_name in self.keys.blacklist:
104 and not os.path.isfile(os.path.join(self.path, f.name)) 104 return False
105 ) 105
106 if os.path.isfile(os.path.join(self.path, f.name)):
107 return False
108
109 if f.method_scope != Eolian_Object_Scope.PUBLIC:
110 return False
111
112 return True
106 113
107 def get_all_inherited(leaf, getter): 114 def get_all_inherited(leaf, getter):
108 print("Getting all items for leaf", leaf) 115 print("Getting all items for leaf", leaf)