Skip to content

chore: add assertions to check connection methods result #233

chore: add assertions to check connection methods result

chore: add assertions to check connection methods result #233

Triggered via push September 12, 2023 15:23
Status Success
Total duration 1m 4s
Artifacts

ci.yml

on: push
Matrix: CI
Fit to window
Zoom out
Zoom in

Annotations

40 warnings
CI (8.1, normal): src/Soql/BoundValuesSeparator.php#L29
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $values = []; foreach ($boundValues as $parameter => $value) { $parameter = sprintf(':%s', $parameter); - if (!isset($types[$parameter])) { + if (isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } if (is_object($value) && method_exists($value, '__toString')) {
CI (8.1, normal): src/Soql/BoundValuesSeparator.php#L33
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ if (!isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } - if (is_object($value) && method_exists($value, '__toString')) { + if (is_object($value) && !method_exists($value, '__toString')) { $value = (string) $value; } if (is_array($value)) {
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)] . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = key($identifier) . '/' . $identifier[key($identifier)] ?? $identifier['Id']; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, normal): src/Soql/BoundValuesSeparator.php#L29
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $values = []; foreach ($boundValues as $parameter => $value) { $parameter = sprintf(':%s', $parameter); - if (!isset($types[$parameter])) { + if (isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } if (is_object($value) && method_exists($value, '__toString')) {
CI (8.2, normal): src/Soql/BoundValuesSeparator.php#L33
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ if (!isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } - if (is_object($value) && method_exists($value, '__toString')) { + if (is_object($value) && !method_exists($value, '__toString')) { $value = (string) $value; } if (is_array($value)) {
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)] . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = key($identifier) . '/' . $identifier[key($identifier)] ?? $identifier['Id']; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, normal): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, authoritative): src/Soql/BoundValuesSeparator.php#L29
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $values = []; foreach ($boundValues as $parameter => $value) { $parameter = sprintf(':%s', $parameter); - if (!isset($types[$parameter])) { + if (isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } if (is_object($value) && method_exists($value, '__toString')) {
CI (8.2, authoritative): src/Soql/BoundValuesSeparator.php#L33
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ if (!isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } - if (is_object($value) && method_exists($value, '__toString')) { + if (is_object($value) && !method_exists($value, '__toString')) { $value = (string) $value; } if (is_array($value)) {
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)] . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = key($identifier) . '/' . $identifier[key($identifier)] ?? $identifier['Id']; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.2, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, authoritative): src/Soql/BoundValuesSeparator.php#L29
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $values = []; foreach ($boundValues as $parameter => $value) { $parameter = sprintf(':%s', $parameter); - if (!isset($types[$parameter])) { + if (isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } if (is_object($value) && method_exists($value, '__toString')) {
CI (8.1, authoritative): src/Soql/BoundValuesSeparator.php#L33
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ if (!isset($types[$parameter])) { $types[$parameter] = ParameterType::STRING; } - if (is_object($value) && method_exists($value, '__toString')) { + if (is_object($value) && !method_exists($value, '__toString')) { $value = (string) $value; } if (is_array($value)) {
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? '/' . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)]; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . $identifier[key($identifier)] . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = $identifier['Id'] ?? key($identifier) . '/'; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L85
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ if ($this->isTransactionActive()) { throw InvalidArgumentException::notSupported('DELETE is not supported under transaction.'); } - $param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)]; + $param = key($identifier) . '/' . $identifier[key($identifier)] ?? $identifier['Id']; $this->send(new Request('DELETE', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers)); return 1; }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 511, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }
CI (8.1, authoritative): src/Soql/ConnectionWrapper.php#L118
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ return 1; } $response = $this->send($request); - $responseBody = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR); + $responseBody = json_decode($response->getBody()->getContents(), true, 513, JSON_THROW_ON_ERROR); if ($responseBody['success'] !== true) { throw OperationFailed::insertFailed($data); }