Merge pull request #95 from codelicia/infection #254
Annotations
20 warnings
CI (8.1):
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):
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):
src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
- $this->addToBatchList($request, $refs);
+
return 1;
}
$response = $this->send($request);
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return 0;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return 2;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return -1;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [199, 201, 204])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [201, 201, 204])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [200, 201, 203])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.1):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [200, 201, 205])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.2):
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):
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):
src/Soql/ConnectionWrapper.php#L151
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$param = $identifier['Id'] ?? key($identifier) . '/' . $identifier[key($identifier)];
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
- $this->addToBatchList($request, $refs);
+
return 1;
}
$response = $this->send($request);
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return 0;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return 2;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L153
Escaped Mutant for Mutator "IntegerNegation":
--- Original
+++ New
@@ @@
$request = new Request('PATCH', sprintf(self::SERVICE_OBJECT_ID_URL, $this->apiVersion(), $tableExpression, $param), $headers, json_encode($data, JSON_THROW_ON_ERROR));
if ($this->isTransactionActive()) {
$this->addToBatchList($request, $refs);
- return 1;
+ return -1;
}
$response = $this->send($request);
if ($response->getStatusCode() !== 204) {
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [199, 201, 204])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [201, 201, 204])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [200, 201, 203])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|
CI (8.2):
src/Soql/ConnectionWrapper.php#L203
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
return 1;
}
$response = $this->send($request);
- if (!in_array($response->getStatusCode(), [200, 201, 204])) {
+ if (!in_array($response->getStatusCode(), [200, 201, 205])) {
throw OperationFailed::upsertFailed($data);
}
return 1;
|