MCPcopy Create free account
hub / github.com/comaps/comaps / formatted_string

Method formatted_string

tools/python/maps_generator/checks/check.py:174–186  ·  view source on GitHub ↗
(self, silent_if_no_results=False, *args, **kwargs)

Source from the content-addressed store, hash-verified

172 return True
173
174 def formatted_string(self, silent_if_no_results=False, *args, **kwargs) -> str:
175 assert self.result
176
177 if silent_if_no_results and self.result.arrow == Arrow.zero:
178 return ""
179
180 rel = get_rel(self.result)
181 return (
182 f"{self.name}: {ROW_TO_STR[self.result.arrow]} {rel:.2f}% "
183 f"[{self.format(self.result.previous)} → "
184 f"{self.format(self.result.current)}: "
185 f"{self.diff_format(self.result.diff)}]"
186 )
187
188
189class CompareCheckSet(CompareCheckBase):

Callers

nothing calls this directly

Calls 2

get_relFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected