free_mutant/meta/return.rb

17 lines
266 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-12 09:15:43 -04:00
Mutant::Meta::Example.add :return do
source 'return'
singleton_mutations
end
Mutant::Meta::Example.add :return do
source 'return foo'
singleton_mutations
mutation 'foo'
mutation 'return nil'
mutation 'return self'
end