Class: Homebrew::TestBot::TestFormulae Private
- Defined in:
- test_bot/test_formulae.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Direct Known Subclasses
Instance Attribute Summary collapse
- #artifact_cache ⇒ Pathname readonly private
- #skipped_or_failed_formulae ⇒ Array<String> private
Attributes inherited from Test
Instance Method Summary collapse
- #initialize(tap:, git:, dry_run:, fail_fast:, verbose:) ⇒ void constructor private
Methods inherited from Test
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Constructor Details
#initialize(tap:, git:, dry_run:, fail_fast:, verbose:) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'test_bot/test_formulae.rb', line 22 def initialize(tap:, git:, dry_run:, fail_fast:, verbose:) super @skipped_or_failed_formulae = T.let([], T::Array[String]) @artifact_cache = T.let(Pathname.new("artifact-cache"), Pathname) # Let's keep track of the artifacts we've already downloaded # to avoid repeatedly trying to download the same thing. @downloaded_artifacts = T.let(Hash.new { |h, k| h[k] = [] }, T::Hash[String, T::Array[String]]) @testing_formulae = T.let([], T::Array[String]) @tested_formulae = T.let([], T::Array[String]) end |
Instance Attribute Details
#artifact_cache ⇒ Pathname (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
11 12 13 |
# File 'test_bot/test_formulae.rb', line 11 def artifact_cache @artifact_cache end |
#skipped_or_failed_formulae ⇒ Array<String>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
8 9 10 |
# File 'test_bot/test_formulae.rb', line 8 def skipped_or_failed_formulae @skipped_or_failed_formulae end |