free_mutant/meta/lambda.rb
2018-12-24 00:50:19 +00:00

23 lines
434 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :block, :lambda do
source '->() {}'
singleton_mutations
mutation '->() { raise }'
end
Mutant::Meta::Example.add :block, :lambda do
source '->() { foo.bar }'
singleton_mutations
mutation '->() { }'
mutation '->() { self }'
mutation '->() { nil }'
mutation '->() { raise }'
mutation '->() { self.bar }'
mutation '->() { foo }'
mutation 'foo.bar'
end