MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / report_reason

Method report_reason

src/ifctester/ifctester/reporter.py:204–215  ·  view source on GitHub ↗
(self, failure: FacetFailure)

Source from the content-addressed store, hash-verified

202 self.set_style("reset")
203
204 def report_reason(self, failure: FacetFailure) -> None:
205 is_bold = False
206 for substring in failure["reason"].split('"'):
207 if is_bold:
208 self.set_style("purple")
209 else:
210 self.set_style("reset")
211 self.print(substring, end="")
212 is_bold = not is_bold
213 self.set_style("grey")
214 self.print(" - " + str(failure["element"]))
215 self.set_style("reset")
216
217 def set_style(self, *colours: str):
218 if self.use_colour:

Callers 1

report_specificationMethod · 0.95

Calls 3

set_styleMethod · 0.95
printMethod · 0.95
splitMethod · 0.80

Tested by

no test coverage detected