Merge pull request #5 from Syndesi/main #64
ci-mutant-test.yml
on: push
Running mutant tests
42s
Annotations
9 warnings
Running mutant tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Running mutant tests:
src/Helper/ActionCypherElementHelper.php#L47
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if ($element instanceof SimilarNodeQueueInterface) {
return ActionCypherElementType::SIMILAR_NODE_QUEUE;
}
- if ($element instanceof SimilarRelationQueueInterface) {
+ if (true) {
return ActionCypherElementType::SIMILAR_RELATION_QUEUE;
}
throw new \LogicException("Provided element can not be mapped to ActionCypherElementType.");
}
}
|
Running mutant tests:
src/Helper/LifecycleEventHelper.php#L118
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$elementType = ActionCypherElementHelper::getTypeFromActionCypherElement($actionCypherElement);
if (array_key_exists($elementType->name, $eventClasses)) {
$eventClass = $eventClasses[$elementType->name];
- if (array_key_exists($isPre ? 'Pre' : 'Post', $eventClass)) {
+ if (array_key_exists($isPre ? 'Post' : 'Pre', $eventClass)) {
$eventClass = $eventClass[$isPre ? 'Pre' : 'Post'];
if (array_key_exists($actionCypherElement->getAction()->name, $eventClass)) {
$eventClass = $eventClass[$actionCypherElement->getAction()->name];
|
Running mutant tests:
src/Helper/StructureHelper.php#L35
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$publicIdentifiers[] = $key;
}
}
- sort($internalIdentifiers);
+
sort($publicIdentifiers);
$identifierStringParts = array_merge($internalIdentifiers, $publicIdentifiers);
return implode(', ', $identifierStringParts);
|
Running mutant tests:
src/Helper/StructureHelper.php#L36
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
}
}
sort($internalIdentifiers);
- sort($publicIdentifiers);
+
$identifierStringParts = array_merge($internalIdentifiers, $publicIdentifiers);
return implode(', ', $identifierStringParts);
}
|
Running mutant tests:
src/Helper/StructureHelper.php#L95
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
public static function getPropertiesWhichAreNotIdentifiers(HasIdentifiersInterface $element) : array
{
$properties = [];
- foreach ($element->getProperties() as $name => $value) {
+ foreach (array() as $name => $value) {
if ($element->hasIdentifier($name)) {
continue;
}
|
Running mutant tests:
src/Helper/StructureHelper.php#L96
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
{
$properties = [];
foreach ($element->getProperties() as $name => $value) {
- if ($element->hasIdentifier($name)) {
+ if (!$element->hasIdentifier($name)) {
continue;
}
$properties[$name] = $value;
|
Running mutant tests:
src/Helper/StructureHelper.php#L97
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$properties = [];
foreach ($element->getProperties() as $name => $value) {
if ($element->hasIdentifier($name)) {
- continue;
+ break;
}
$properties[$name] = $value;
}
|
Running mutant tests:
src/Helper/StructureHelper.php#L102
Escaped Mutant for Mutator "ArrayOneItem":
--- Original
+++ New
@@ @@
}
$properties[$name] = $value;
}
- return $properties;
+ return count($properties) > 1 ? array_slice($properties, 0, 1, true) : $properties;
}
/**
* @param array<string, mixed> $properties
|