Skip to content

Commit 454d7ce

Browse files
committed
Accept equivalent mutations instead of disabling mutant
Per review: rather than suppressing the surviving mutations with `# mutant:disable`, drop the redundant `Alchemrest::` prefixes. `Schema` and `Transforms` resolve to the same constants inside `Alchemrest::Data`, so the mutations are no longer generated and mutant reports 100% coverage (14/14 killed). The `(&)` block-parameter fix is unchanged.
1 parent 8da8380 commit 454d7ce

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

alchemrest/lib/alchemrest/data.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
module Alchemrest
44
class Data
5-
# Mutant only finds equivalent mutants here: these constants resolve the
6-
# same with or without their Alchemrest:: prefix inside this namespace.
7-
# mutant:disable
85
def self.schema(&)
9-
include Alchemrest::Data::Schema.new(**(yield Alchemrest::Transforms))
6+
include Schema.new(**(yield Transforms))
107
end
118
end
129
end

0 commit comments

Comments
 (0)