Sha256: 2231ea11770c14ee1452a3160c6171f2dbcf46b09d1d8af5202cc1b5a0a25c06

Contents?: true

Size: 700 Bytes

Versions: 16

Compression:

Stored size: 700 Bytes

Contents

# frozen_string_literal: true

Mutant::Meta::Example.add :indexasgn do
  source 'foo[bar] = baz'

  singleton_mutations
  mutation 'self[bar] = baz'
  mutation 'foo'
  mutation 'foo[bar]'
  mutation 'foo.at(bar)'
  mutation 'foo.fetch(bar)'
  mutation 'foo.key?(bar)'
  mutation 'foo[bar] = self'
  mutation 'foo[bar] = nil'
  mutation 'foo[nil] = baz'
  mutation 'foo[self] = baz'
  mutation 'foo[] = baz'
  mutation 'baz'
  mutation 'bar'
end

Mutant::Meta::Example.add :indexasgn, :op_asgn do
  source 'self[foo] += bar'

  singleton_mutations
  mutation 'self[] += bar'
  mutation 'self[nil] += bar'
  mutation 'self[self] += bar'
  mutation 'self[foo] += nil'
  mutation 'self[foo] += self'
end

Version data entries

16 entries across 16 versions & 1 rubygems

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