Sha256: bc026621068e13d8da55b8ed750600e726aeaaa4bffd735e2076e6ed0c23e506

Contents?: true

Size: 501 Bytes

Versions: 20

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

Mutant::Meta::Example.add :lvar do
  source 'a = nil; a'

  mutation 'a = nil; nil'
  mutation 'a = nil; self'
  mutation 'a = nil'
  # TODO: fix invalid AST
  #   These ASTs are not valid and should NOT be emitted
  #   Mutations of lvarasgn need to be special cased to avoid this.
  mutation s(:begin, s(:lvasgn, :a__mutant__, s(:nil)), s(:lvar, :a))
  mutation s(:begin, s(:nil), s(:lvar, :a))
  mutation s(:begin, s(:self), s(:lvar, :a))
  mutation s(:lvar, :a)
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mutant-0.9.11 meta/lvar.rb
mutant-0.9.10 meta/lvar.rb
mutant-0.9.9 meta/lvar.rb
mutant-0.9.8 meta/lvar.rb
mutant-0.9.7 meta/lvar.rb
mutant-0.9.6 meta/lvar.rb
mutant-0.9.5 meta/lvar.rb
mutant-0.9.4 meta/lvar.rb
mutant-0.9.3 meta/lvar.rb
mutant-0.9.2 meta/lvar.rb
mutant-0.9.1 meta/lvar.rb
mutant-0.9.0 meta/lvar.rb
mutant-0.8.24 meta/lvar.rb
mutant-0.8.23 meta/lvar.rb
mutant-0.8.22 meta/lvar.rb
mutant-0.8.21 meta/lvar.rb
mutant-0.8.20 meta/lvar.rb
mutant-0.8.19 meta/lvar.rb
mutant-0.8.18 meta/lvar.rb
mutant-0.8.17 meta/lvar.rb