free_mutant/meta/restarg.rb

11 lines
250 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-12 09:15:43 -04:00
Mutant::Meta::Example.add :restarg do
source 'def foo(*bar); end'
mutation 'def foo; end'
mutation 'def foo(*bar); bar = []; end'
mutation 'def foo(*bar); raise; end'
mutation 'def foo(*bar); super; end'
end