triAGENS/ashikawa-core — pull request #121 by moonglum (2014-05-16 20:05:02+00:00)
Title: New mutations

An update to mutant brought new mutations regarding equality. Check what exactly we want to do here:

```
evil:Ashikawa::Core::Document#check_if_persisted!:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/document.rb:60:d0942
@@ -1,6 +1,6 @@
def check_if_persisted!
- if (@id == :not_persisted)
+ if @id.eql?(:not_persisted)
raise(DocumentNotFoundException)
end
end
evil:Ashikawa::Core::Document#check_if_persisted!:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/document.rb:60:d4564
@@ -1,6 +1,6 @@
def check_if_persisted!
- if (@id == :not_persisted)
+ if @id.equal?(:not_persisted)
raise(DocumentNotFoundException)
end
end
(17/19) 89% - 3.42s
Ashikawa::Core::Document#send_request_for_document:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/document.rb:156
evil:Ashikawa::Core::Document#send_request_for_document:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/document.rb:156:19958

(19/20) 95% - 3.67s
Ashikawa::Core::Edge#send_request_for_document:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/edge.rb:50
evil:Ashikawa::Core::Edge#send_request_for_document:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/edge.rb:50:500df

(17/18) 94% - 2.94s
Ashikawa::Core::Status#being_unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:71
evil:Ashikawa::Core::Status#being_unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:71:fe59b
@@ -1,4 +1,4 @@
def being_unloaded?
- @code == STATUS_BEING_UNLOADED
+ @code.eql?(STATUS_BEING_UNLOADED)
end
evil:Ashikawa::Core::Status#being_unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:71:cb272
@@ -1,4 +1,4 @@
def being_unloaded?
- @code == STATUS_BEING_UNLOADED
+ @code.equal?(STATUS_BEING_UNLOADED)
end
(08/10) 80% - 1.54s
Ashikawa::Core::Status#loaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:60
evil:Ashikawa::Core::Status#loaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:60:9a9cf
@@ -1,4 +1,4 @@
def loaded?
- @code == STATUS_LOADED
+ @code.eql?(STATUS_LOADED)
end
evil:Ashikawa::Core::Status#loaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:60:0dab1
@@ -1,4 +1,4 @@
def loaded?
- @code == STATUS_LOADED
+ @code.equal?(STATUS_LOADED)
end
(08/10) 80% - 1.60s
Ashikawa::Core::Status#new_born?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:38
evil:Ashikawa::Core::Status#new_born?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:38:a7521
@@ -1,4 +1,4 @@
def new_born?
- @code == STATUS_NEW_BORN
+ @code.eql?(STATUS_NEW_BORN)
end
evil:Ashikawa::Core::Status#new_born?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:38:7f1ba
@@ -1,4 +1,4 @@
def new_born?
- @code == STATUS_NEW_BORN
+ @code.equal?(STATUS_NEW_BORN)
end
(08/10) 80% - 1.64s
Ashikawa::Core::Status#unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:49
evil:Ashikawa::Core::Status#unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:49:37ea6
@@ -1,4 +1,4 @@
def unloaded?
- @code == STATUS_UNLOADED
+ @code.eql?(STATUS_UNLOADED)
end
evil:Ashikawa::Core::Status#unloaded?:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/status.rb:49:1481a
@@ -1,4 +1,4 @@
def unloaded?
- @code == STATUS_UNLOADED
+ @code.equal?(STATUS_UNLOADED)
end
(08/10) 80% - 1.65s
Ashikawa::Core::Transaction#execute:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/transaction.rb:92
evil:Ashikawa::Core::Transaction#execute:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/transaction.rb:92:9a8a1
@@ -1,8 +1,8 @@
def execute(action_parameters = :no_params_provided)
- unless (action_parameters == :no_params_provided)
+ unless action_parameters.eql?(:no_params_provided)
@request_parameters[:params] = action_parameters
end
response = @database.send_request("transaction", post: @request_parameters)
response["result"]
end
evil:Ashikawa::Core::Transaction#execute:/Users/moonglum/Code/ashikawa-core/lib/ashikawa-core/transaction.rb:92:b7efb
@@ -1,8 +1,8 @@
def execute(action_parameters = :no_params_provided)
- unless (action_parameters == :no_params_provided)
+ unless action_parameters.equal?(:no_params_provided)
@request_parameters[:params] = action_parameters
end
response = @database.send_request("transaction", post: @request_parameters)
response["result"]
end
```