Lines Matching refs:self
64 def __init__(self): argument
68 self.tests = set()
69 self.global_funcs = set()
71 def add_instance(self, it): argument
75 self.tests.add(it)
77 def add_func(self, f): argument
81 self.global_funcs.add(f)
83 def get_name(self): argument
89 def __str__(self): argument
93 all_tests = sorted(self.tests)
99 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name())
100 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke)
103 for f in self.global_funcs:
105 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright('java'),
132 def __init__(self, main, ty): argument
136 self.ty = ty
137 self.main = main
138 self.funcs = set()
139 self.main.add_instance(self)
141 def get_name(self): argument
145 return "TEST_NAME_"+self.ty
147 def add_func(self, f): argument
151 self.main.add_func(f)
152 self.funcs.add(f)
154 def __str__(self): argument
159 for f in sorted(self.funcs, key=lambda a: (a.func, a.farg)):
160 func_invokes += self.TEST_INVOKE_TEMPLATE.format(fname=f.get_name(),
163 return self.INSTANCE_TEST_TEMPLATE.format(test_name=self.get_name(), ty=self.ty,
187 def __init__(self, func, farg, invoke): argument
191 self.func = func
192 self.farg = farg
193 self.invoke = invoke
195 def get_name(self): argument
199 return "Test_Func_{}_{}_{}".format(self.func, self.farg, self.invoke)
201 def __str__(self): argument
205 return self.TEST_FUNCTION_TEMPLATE.format(fname=self.get_name(),
206 farg=self.farg,
207 invoke_type=self.invoke,
208 callfunc=self.func)