Sha256: 73dfa2eef2726cd368cf25f85268c2ce469018c9c4e32fd73eff10d3b1155a04

Contents?: true

Size: 958 Bytes

Versions: 20

Compression:

Stored size: 958 Bytes

Contents

# frozen_string_literal: true

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

20 entries across 20 versions & 1 rubygems

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