private function logEvent()

in src/_Private/CLIOutputHandler.hack [48:59]


  private function logEvent(HackTest\ProgressEvent $e): void {
    if ($e is HackTest\TestFinishedProgressEvent) {
      $this->resultCounts[$e->getResult()]++;
    }

    if ($e is HackTest\ErrorProgressEvent) {
      $this->errors[] = $e;
      if (!$e is HackTest\TestFinishedProgressEvent) {
        $this->resultCounts[HackTest\TestResult::ERROR]++;
      }
    }
  }