99ab9ff171
* This commit does every 2.3 change required to get the build pass * None of the changes can be extracted, without changing the build setup
50 lines
958 B
Ruby
50 lines
958 B
Ruby
# frozen_string_literal: true
|
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
|
source 'a ||= 1'
|
|
|
|
singleton_mutations
|
|
mutation 'a__mutant__ ||= 1'
|
|
mutation 'a ||= nil'
|
|
mutation 'a ||= self'
|
|
mutation 'a ||= 0'
|
|
mutation 'a ||= -1'
|
|
mutation 'a ||= 2'
|
|
end
|
|
|
|
Mutant::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
|
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
|
source 'Foo ||= nil'
|
|
|
|
singleton_mutations
|
|
end
|
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
|
source '@a ||= self.bar'
|
|
|
|
singleton_mutations
|
|
mutation '@a ||= nil'
|
|
mutation '@a ||= self'
|
|
mutation '@a ||= bar'
|
|
end
|
|
|
|
Mutant::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
|