Sha256: c181674db8c042fee2898780bcd312fcf762f0361d08dc529fb30e9c974735b1
Contents?: true
Size: 601 Bytes
Versions: 10
Compression:
Stored size: 601 Bytes
Contents
# typed: strict # frozen_string_literal: true module Minitest module Distributed module Filters class FileFilterBase extend T::Sig sig { returns(Pathname) } attr_reader :file sig { params(file: Pathname).void } def initialize(file) @file = file @tests = T.let(nil, T.nilable(T::Set[String])) end sig { returns(T::Set[String]) } def tests @tests ||= begin tests = File.readlines(@file, chomp: true) Set.new(tests) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems