MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / run

Method run

client/task/basic/datahandler/formater.py:27–43  ·  view source on GitHub ↗

:param params: :return:

(self, params)

Source from the content-addressed store, hash-verified

25
26class Formater(HandlerBase):
27 def run(self, params):
28 """
29
30 :param params:
31 :return:
32 """
33 if not params:
34 return params
35
36 Reporter(params).update_task_progress(InfoType.FormatTask)
37 if self.handle_type == NORMAL_FORMAT:
38 return self._normal_format(params)
39 elif self.handle_type == NO_FORMAT:
40 return params
41 elif self.handle_type == CCN_FORMAT:
42 return self._ccn_format(params)
43 raise TaskFormatError("format type is not exist: %s" % self.handle_type)
44
45 def _normal_format(self, params):
46 """

Callers

nothing calls this directly

Calls 5

_normal_formatMethod · 0.95
_ccn_formatMethod · 0.95
ReporterClass · 0.90
TaskFormatErrorClass · 0.90
update_task_progressMethod · 0.45

Tested by

no test coverage detected