Lines Matching refs:format
124 test_invoke += self.TEST_GROUP_INVOKE_TEMPLATE.format(test_name=t.get_name())
125 main_func = self.MAIN_FUNCTION_TEMPLATE.format(test_group_invoke=test_invoke)
127 return self.MAIN_CLASS_TEMPLATE.format(copyright = get_copyright('smali'),
196 return self.TEST_FUNCTION_TEMPLATE.format(fname = self.get_name(),
204 return "TEST_FUNC_{}".format(self.farg.get_name())
210 return self.OUTPUT_FORMAT.format(
376 return "[{fname} {iftree}]".format(fname = self.get_name(), iftree = print_tree(self.ifaces))
379 return '\n'.join(map(lambda a: self.OUTPUT_TEMPLATE.format(class_name = self.get_name(),
388 funcs = '\n'.join(map(lambda a: self.TEST_FUNC_TEMPLATE.format(iface = a.get_name(),
391 calls = '\n'.join(map(lambda a: self.TEST_CALL_TEMPLATE.format(iface = a.get_name(),
394 s_ifaces = '\n'.join(map(lambda a: self.IMPLEMENTS_TEMPLATE.format(iface_name = a.get_name()),
397 return self.TEST_CLASS_TEMPLATE.format(copyright = get_copyright('smali'),
517 return "[{class_name} {iftree}]".format(class_name = self.get_name(),
523 s_ifaces = '\n'.join(map(lambda a: self.IMPLEMENTS_TEMPLATE.format(iface_name = a.get_name()),
527 funcs = self.DEFAULT_FUNC_TEMPLATE.format(class_name = self.class_name)
530 return self.TEST_INTERFACE_TEMPLATE.format(copyright = get_copyright('smali'),
604 print("{} is not a valid smali dir".format(smali_dir), file=sys.stderr)