Sha256: f0e25a4d3277de406a4c1268fa9d98c7970cccc8a8acbbe08642209d3a8943ca

Contents?: true

Size: 526 Bytes

Versions: 8

Compression:

Stored size: 526 Bytes

Contents

module Mutest
  class Mutator
    class Node
      # Mutator for while expressions
      class ConditionalLoop < self
        handle(:until, :while)

        children :condition, :body

        private

        # Emit mutations
        #
        # @return [undefined]
        def dispatch
          emit_singletons
          emit_condition_mutations
          emit_body_mutations if body
          emit_body(nil)
          emit_body(N_RAISE)
        end
      end # ConditionalLoop
    end # Node
  end # Mutator
end # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.8 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.7 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.6 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.5 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.4 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.3 lib/mutest/mutator/node/conditional_loop.rb
mutest-0.0.2 lib/mutest/mutator/node/conditional_loop.rb