Sha256: bef13186cb687ac2f2ea62e70d3c65839ef9817db57b572377c39e9bcd2ea0c6

Contents?: true

Size: 927 Bytes

Versions: 9

Compression:

Stored size: 927 Bytes

Contents

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

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

Mutest::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

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

  singleton_mutations
end

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

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

Mutest::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

9 entries across 9 versions & 1 rubygems

Version Path
mutest-0.0.10 meta/or_asgn.rb
mutest-0.0.9 meta/or_asgn.rb
mutest-0.0.8 meta/or_asgn.rb
mutest-0.0.7 meta/or_asgn.rb
mutest-0.0.6 meta/or_asgn.rb
mutest-0.0.5 meta/or_asgn.rb
mutest-0.0.4 meta/or_asgn.rb
mutest-0.0.3 meta/or_asgn.rb
mutest-0.0.2 meta/or_asgn.rb