Sha256: c564d245191e5e0de997a1da2f5d91a8fc99b61dfba6563503146f7d604c4193

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

# encoding: utf-8

Mutant::Meta::Example.add do
  source 'foo() { a; b }'

  singleton_mutations
  mutation 'foo { a }'
  mutation 'foo { b }'
  mutation 'foo {}'
  mutation 'foo { raise }'
  mutation 'foo { a; nil }'
  mutation 'foo { a; self }'
  mutation 'foo { nil; b }'
  mutation 'foo { self; b }'
  mutation 'foo'
end

Mutant::Meta::Example.add do
  source 'foo { |a, b| }'

  singleton_mutations
  mutation 'foo'
  mutation 'foo { |a, b| raise }'
  mutation 'foo { |a, b__mutant__| }'
  mutation 'foo { |a__mutant__, b| }'
  mutation 'foo { |a| }'
  mutation 'foo { |b| }'
  mutation 'foo { || }'
end

Mutant::Meta::Example.add do
  source 'foo { |(a, b), c| }'

  singleton_mutations
  mutation 'foo { || }'
  mutation 'foo { |a, b, c| }'
  mutation 'foo { |(a, b), c| raise }'
  mutation 'foo { |(a), c| }'
  mutation 'foo { |(b), c| }'
  mutation 'foo { |(a, b)| }'
  mutation 'foo { |c| }'
  mutation 'foo { |(a__mutant__, b), c| }'
  mutation 'foo { |(a, b__mutant__), c| }'
  mutation 'foo { |(a, b), c__mutant__| }'
  mutation 'foo'
end

Mutant::Meta::Example.add do
  source 'foo { |(a)| }'

  singleton_mutations
  mutation 'foo { || }'
  mutation 'foo { |a| }'
  mutation 'foo { |(a)| raise }'
  mutation 'foo { |(a__mutant__)| }'
  mutation 'foo'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.5.26 meta/block.rb
mutant-0.5.25 meta/block.rb
mutant-0.5.24 meta/block.rb
mutant-0.5.23 meta/block.rb
mutant-0.5.22 meta/block.rb
mutant-0.5.21 meta/block.rb
mutant-0.5.20 meta/block.rb
mutant-0.5.19 meta/block.rb