Sha256: e8726537fd35408ff1d21cdce4b0362b6616267614a9c854d3b1e1ea94050574

Contents?: true

Size: 927 Bytes

Versions: 6

Compression:

Stored size: 927 Bytes

Contents

Mutant::Meta::Example.add :or_asgn do
  source 'a ||= 1'

  singleton_mutations
  mutation 'a__mutant__ ||= 1'
  mutation 'a ||= nil'
  mutation 'a ||= self'
  mutation 'a ||= 0'
  mutation 'a ||= -1'
  mutation 'a ||= 2'
end

Mutant::Meta::Example.add :or_asgn do
  source '@a ||= 1'

  singleton_mutations
  mutation '@a ||= nil'
  mutation '@a ||= self'
  mutation '@a ||= 0'
  mutation '@a ||= -1'
  mutation '@a ||= 2'
end

Mutant::Meta::Example.add :or_asgn do
  source 'Foo ||= nil'

  singleton_mutations
end

Mutant::Meta::Example.add :or_asgn do
  source '@a ||= self.bar'

  singleton_mutations
  mutation '@a ||= nil'
  mutation '@a ||= self'
  mutation '@a ||= bar'
end

Mutant::Meta::Example.add :or_asgn do
  source 'foo[:bar] ||= 1'

  singleton_mutations
  mutation 'foo[:bar] ||= nil'
  mutation 'foo[:bar] ||= self'
  mutation 'foo[:bar] ||= 0'
  mutation 'foo[:bar] ||= -1'
  mutation 'foo[:bar] ||= 2'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 meta/or_asgn.rb
mutant-0.8.15 meta/or_asgn.rb
mutant-0.8.14 meta/or_asgn.rb
mutant-0.8.13 meta/or_asgn.rb
mutant-0.8.12 meta/or_asgn.rb
mutant-0.8.11 meta/or_asgn.rb