free_mutant/lib/mutant/killer/static.rb
Markus Schirp fb8bb2ed24 Add static fail and success strategies
* Useful for benchmarking
2012-11-22 03:00:36 +01:00

19 lines
301 B
Ruby

module Mutant
class Killer
class Static < self
def run
self.class::RESULT
end
class Success < self
TYPE = 'success'.freeze
RESULT = true
end
class Fail < self
TYPE = 'fail'.freeze
RESULT = false
end
end
end
end