MCPcopy Create free account
hub / github.com/FastLED/FastLED / _should_display

Method _should_display

ci/util/test_runner.py:337–358  ·  view source on GitHub ↗

Determine if a result should be displayed

(self, result: TestResult)

Source from the content-addressed store, hash-verified

335 ts_print(f" {msg}")
336
337 def _should_display(self, result: TestResult) -> bool:
338 """Determine if a result should be displayed"""
339 # Always show errors
340 if result.type == TestResultType.ERROR:
341 return True
342
343 # Always show final success/completion messages
344 if any(
345 marker in result.message
346 for marker in ["### SUCCESS", "### ERROR", "Test execution complete:"]
347 ):
348 return True
349
350 # Show warnings in verbose mode
351 if result.type == TestResultType.WARNING and self.verbose:
352 return True
353
354 # Show info/debug only in verbose mode
355 return self.verbose and result.type in [
356 TestResultType.INFO,
357 TestResultType.DEBUG,
358 ]
359
360
361@typechecked

Callers 1

_format_resultMethod · 0.95

Calls 1

anyFunction · 0.85

Tested by

no test coverage detected