Merge pull request #16976 from rrotter/tap-info-skip-untapped-core-taps

tap-info cmd: skip untapped core taps
This commit is contained in:
Kevin 2024-03-30 14:00:47 -07:00 committed by GitHub
commit 5128d526c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -48,7 +48,7 @@ module Homebrew
formula_count = 0
command_count = 0
private_count = 0
Tap.each do |tap|
Tap.installed.each do |tap|
tap_count += 1
formula_count += tap.formula_files.size
command_count += tap.command_files.size

View File

@ -13,4 +13,11 @@ RSpec.describe "brew tap-info" do
.and not_to_output.to_stderr
.and be_a_success
end
it "display brief statistics for all installed taps", :integration_test, :needs_network do
expect { brew "tap-info", "HOMEBREW_NO_INSTALL_FROM_API" => nil }
.to output(/\d+ taps?, \d+ private/).to_stdout
.and not_to_output.to_stderr
.and be_a_success
end
end