Release 1.0.1 #51
ci.yaml
on: push
Matrix: Tests
Matrix: Coding standard
Matrix: Static analysis
Matrix: Test for mutants
Matrix: Code coverage finish
Status check - CI
4s
Annotations
7 warnings
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L99
Escaped Mutant for Mutator "Foreach_":
@@ @@
{
$url = $this->request->getUrl();
$url = $url->withQueryParameter('do', self::SignalName);
- foreach ($params as $name => $value) {
+ foreach ([] as $name => $value) {
$url = $url->withQueryParameter($name, $value);
}
return $url->getAbsoluteUrl();
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L180
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->renderDetail($messageId);
} elseif ($action === 'source' && is_string($messageId)) {
$this->renderSource($messageId);
- } elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
+ } elseif (($action === 'attachment' || is_string($messageId)) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
} elseif ($action === 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L180
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
$this->renderDetail($messageId);
} elseif ($action === 'source' && is_string($messageId)) {
$this->renderSource($messageId);
- } elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
+ } elseif ($action === 'attachment' && is_string($messageId) || Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
} elseif ($action === 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L182
Escaped Mutant for Mutator "Identical":
@@ @@
$this->renderSource($messageId);
} elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
- } elseif ($action === 'delete' && is_string($messageId)) {
+ } elseif ($action !== 'delete' && is_string($messageId)) {
$this->deleteById($messageId);
} elseif ($action === 'delete') {
$this->deleteAll();
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L182
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
@@ @@
$this->renderSource($messageId);
} elseif ($action === 'attachment' && is_string($messageId) && Validators::isNumericInt($attachmentId)) {
$this->renderAttachment($messageId, (int) $attachmentId);
- } elseif ($action === 'delete' && is_string($messageId)) {
+ } elseif (!($action === 'delete') && !is_string($messageId)) {
$this->deleteById($messageId);
} elseif ($action === 'delete') {
$this->deleteAll();
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L238
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
private function deleteById(string $id): void
{
- $this->mailer->deleteById($id);
+
$this->redirectBack();
}
private function deleteAll(): void
|
Test for mutants (ubuntu-latest, 8.3):
src/Tracy/MailPanel.php#L244
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
}
private function deleteAll(): void
{
- $this->mailer->deleteAll();
+
$this->redirectBack();
}
/**
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Logs - Mutations
Expired
|
799 Bytes |
|