Advertisement
Guest User

infection-logs.txt

a guest
Oct 16th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. Escaped mutants:
  2. ================
  3.  
  4. Timed Out mutants:
  5. ==================
  6.  
  7. Not Covered mutants:
  8. ====================
  9.  
  10.  
  11. 1) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:49 [M] PublicVisibility
  12.  
  13. --- Original
  14. +++ New
  15. @@ @@
  16. /**
  17. * Static method for instantiating a new query.
  18. */
  19. - public static function search($value) : self
  20. + protected static function search($value) : self
  21. {
  22. return new static($value);
  23. }
  24.  
  25.  
  26. 2) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:66 [M] PublicVisibility
  27.  
  28. --- Original
  29. +++ New
  30. @@ @@
  31. /**
  32. * Attaches an index to the query.
  33. */
  34. - public function in(string $index, string $type = null) : self
  35. + protected function in(string $index, string $type = null) : self
  36. {
  37. $this->build['index'] = $index;
  38. if ($type) {
  39.  
  40.  
  41. 3) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:82 [M] PublicVisibility
  42.  
  43. --- Original
  44. +++ New
  45. @@ @@
  46. *
  47. * @param string $field
  48. */
  49. - public function match(string $field) : self
  50. + protected function match(string $field) : self
  51. {
  52. $this->queries[] = ['match' => [$field => ['query' => $this->value]]];
  53. return $this;
  54.  
  55.  
  56. 4) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:87 [M] ArrayItem
  57.  
  58. --- Original
  59. +++ New
  60. @@ @@
  61. */
  62. public function match(string $field) : self
  63. {
  64. - $this->queries[] = ['match' => [$field => ['query' => $this->value]]];
  65. + $this->queries[] = ['match' => [$field => ['query' > $this->value]]];
  66. return $this;
  67. }
  68. /**
  69.  
  70.  
  71. 5) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:103 [M] PublicVisibility
  72.  
  73. --- Original
  74. +++ New
  75. @@ @@
  76. * @param string[] $fields
  77. * @param string $type The type of match to perform. Accepts: best_fields, most_fields, cross_fields, phrase, phrase_prefix.
  78. */
  79. - public function matches(array $fields, string $type = 'best_fields') : self
  80. + protected function matches(array $fields, string $type = 'best_fields') : self
  81. {
  82. $this->queries[] = ['multi_match' => ['query' => $this->value, 'fields' => $fields, 'type' => $type]];
  83. return $this;
  84.  
  85.  
  86. 6) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:107 [M] ArrayItem
  87.  
  88. --- Original
  89. +++ New
  90. @@ @@
  91. */
  92. public function matches(array $fields, string $type = 'best_fields') : self
  93. {
  94. - $this->queries[] = ['multi_match' => ['query' => $this->value, 'fields' => $fields, 'type' => $type]];
  95. + $this->queries[] = ['multi_match' => ['query' > $this->value, 'fields' => $fields, 'type' => $type]];
  96. return $this;
  97. }
  98. /**
  99.  
  100.  
  101. 7) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:123 [M] OneZeroFloat
  102.  
  103. --- Original
  104. +++ New
  105. @@ @@
  106. *
  107. * @param float $boost The _score parameter.
  108. */
  109. - public function matchAll(float $boost = 1.0) : self
  110. + public function matchAll(float $boost = 0.0) : self
  111. {
  112. $this->queries[] = ['match_all' => ['boost' => $boost]];
  113. return $this;
  114.  
  115.  
  116. 8) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:123 [M] PublicVisibility
  117.  
  118. --- Original
  119. +++ New
  120. @@ @@
  121. *
  122. * @param float $boost The _score parameter.
  123. */
  124. - public function matchAll(float $boost = 1.0) : self
  125. + protected function matchAll(float $boost = 1.0) : self
  126. {
  127. $this->queries[] = ['match_all' => ['boost' => $boost]];
  128. return $this;
  129.  
  130.  
  131. 9) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:139 [M] PublicVisibility
  132.  
  133. --- Original
  134. +++ New
  135. @@ @@
  136. /**
  137. * Generates a match_none query.
  138. */
  139. - public function matchNone() : self
  140. + protected function matchNone() : self
  141. {
  142. $this->queries[] = ['match_none' => []];
  143. return $this;
  144.  
  145.  
  146. 10) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:156 [M] DecrementInteger
  147.  
  148. --- Original
  149. +++ New
  150. @@ @@
  151. */
  152. private function makeBody() : array
  153. {
  154. - if (count($this->queries) <= 0) {
  155. + if (count($this->queries) <= -1) {
  156. return $this->queries;
  157. }
  158. return ['body' => ['query' => array_merge(...$this->queries)]];
  159. }
  160.  
  161. 11) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:156 [M] OneZeroInteger
  162.  
  163. --- Original
  164. +++ New
  165. @@ @@
  166. */
  167. private function makeBody() : array
  168. {
  169. - if (count($this->queries) <= 0) {
  170. + if (count($this->queries) <= 1) {
  171. return $this->queries;
  172. }
  173. return ['body' => ['query' => array_merge(...$this->queries)]];
  174. }
  175.  
  176. 12) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:156 [M] LessThanOrEqualTo
  177.  
  178. --- Original
  179. +++ New
  180. @@ @@
  181. */
  182. private function makeBody() : array
  183. {
  184. - if (count($this->queries) <= 0) {
  185. + if (count($this->queries) < 0) {
  186. return $this->queries;
  187. }
  188. return ['body' => ['query' => array_merge(...$this->queries)]];
  189. }
  190.  
  191. 13) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:156 [M] LessThanOrEqualToNegotiation
  192.  
  193. --- Original
  194. +++ New
  195. @@ @@
  196. */
  197. private function makeBody() : array
  198. {
  199. - if (count($this->queries) <= 0) {
  200. + if (count($this->queries) > 0) {
  201. return $this->queries;
  202. }
  203. return ['body' => ['query' => array_merge(...$this->queries)]];
  204. }
  205.  
  206. 14) /home/vagrant/code/elasticsearch-php-wrapper/src/Builder.php:160 [M] ArrayItem
  207.  
  208. --- Original
  209. +++ New
  210. @@ @@
  211. if (count($this->queries) <= 0) {
  212. return $this->queries;
  213. }
  214. - return ['body' => ['query' => array_merge(...$this->queries)]];
  215. + return ['body' => ['query' > array_merge(...$this->queries)]];
  216. }
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement