Remove some coverage comments
timw4mail/php-kilo/pipeline/head There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2021-04-13 15:03:17 -04:00
parent b980a6feb0
commit 69ffb84b33
1 changed files with 1 additions and 11 deletions

View File

@ -468,9 +468,7 @@ class Row {
$this->hlOpenComment = $inComment; $this->hlOpenComment = $inComment;
if ($changed && $this->idx + 1 < $this->parent->numRows) if ($changed && $this->idx + 1 < $this->parent->numRows)
{ {
// @codeCoverageIgnoreStart
$this->parent->rows[$this->idx + 1]->highlight(); $this->parent->rows[$this->idx + 1]->highlight();
// @codeCoverageIgnoreEnd
} }
} }
@ -485,9 +483,7 @@ class Row {
$this->idx < $this->parent->numRows $this->idx < $this->parent->numRows
)) ))
{ {
// @codeCoverageIgnoreStart
return; return;
// @codeCoverageIgnoreEnd
} }
$tokens = $this->parent->tokens[$rowNum]; $tokens = $this->parent->tokens[$rowNum];
@ -502,9 +498,7 @@ class Row {
{ {
if ($offset >= $this->rsize) if ($offset >= $this->rsize)
{ {
// @codeCoverageIgnoreStart
break; break;
// @codeCoverageIgnoreEnd
} }
// A multi-line comment can end in the middle of a line... // A multi-line comment can end in the middle of a line...
@ -526,13 +520,11 @@ class Row {
break; break;
} }
$char = $token['char']; // ?? ''; $char = $token['char'];
$charLen = strlen($char); $charLen = strlen($char);
if ($charLen === 0 || $offset >= $this->rsize) if ($charLen === 0 || $offset >= $this->rsize)
{ {
// @codeCoverageIgnoreStart
continue; continue;
// @codeCoverageIgnoreEnd
} }
$charStart = strpos($this->render, $char, $offset); $charStart = strpos($this->render, $char, $offset);
if ($charStart === FALSE) if ($charStart === FALSE)
@ -609,9 +601,7 @@ class Row {
$this->hlOpenComment = $inComment; $this->hlOpenComment = $inComment;
if ($changed && ($this->idx + 1) < $this->parent->numRows) if ($changed && ($this->idx + 1) < $this->parent->numRows)
{ {
// @codeCoverageIgnoreStart
$this->parent->rows[$this->idx + 1]->highlight(); $this->parent->rows[$this->idx + 1]->highlight();
// @codeCoverageIgnoreEnd
} }
} }
} }