Sha256: b48d231c2fdf240680e8dabd5ade11feb11fe3d664902606c18dba64074d66bd
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
# typed: strict # frozen_string_literal: true module Spoom module Deadcode module Plugins class Minitest < Base extend T::Sig ignore_classes_named(/Test$/) ignore_methods_named( "after_all", "around", "around_all", "before_all", "setup", "teardown", ) sig { override.params(definition: Model::Method).void } def on_define_method(definition) file = definition.location.file @index.ignore(definition) if file.match?(%r{test/.*test\.rb$}) && definition.name.match?(/^test_/) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spoom-1.3.3 | lib/spoom/deadcode/plugins/minitest.rb |