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

Method _parse_line_to_result

ci/util/test_runner.py:408–528  ·  view source on GitHub ↗

Parse a line of output into a structured test result

(
        self, line: str, process_name: str
    )

Source from the content-addressed store, hash-verified

406 self.formatter.add_result(result)
407
408 def _parse_line_to_result(
409 self, line: str, process_name: str
410 ) -> Optional[TestResult]:
411 """Parse a line of output into a structured test result"""
412 # Skip empty lines
413 if not line.strip():
414 return None
415
416 # Skip test output noise
417 if any(
418 noise in line
419 for noise in [
420 "doctest version is",
421 'run with "--help"',
422 "assertions:",
423 "test cases:",
424 "MESSAGE:",
425 "TEST CASE:",
426 "Test passed",
427 "Test execution",
428 "Test completed",
429 "Running test:",
430 "Process completed:",
431 "Command completed:",
432 "Command output:",
433 "Exit code:",
434 "All parallel tests",
435 "JSON parsing failed",
436 "readFrameAt failed",
437 "MemoryFileHandle",
438 "C:\\Users\\",
439 "\\dev\\fastled\\",
440 "\\tests\\",
441 "\\src\\",
442 "test line_simplification.exe",
443 "test noise_hires.exe",
444 "test mutex.exe",
445 "test rbtree.exe",
446 "test priority_queue.exe",
447 "test json_roundtrip.exe",
448 "test malloc_hooks.exe",
449 "test rectangular_buffer.exe",
450 "test ostream.exe",
451 "test active_strip_data_json.exe",
452 "test noise_range.exe",
453 "test json.exe",
454 "test point.exe",
455 "test screenmap.exe",
456 "test task.exe",
457 "test queue.exe",
458 "test promise.exe",
459 "test shared_ptr.exe",
460 "test screenmap_serialization.exe",
461 "test strstream.exe",
462 "test slice.exe",
463 "test hsv_conversion_accuracy.exe",
464 "test tile2x2.exe",
465 "test tuple.exe",

Callers 1

handle_output_lineMethod · 0.95

Calls 2

TestResultClass · 0.90
anyFunction · 0.85

Tested by

no test coverage detected