# This file is @generated by formula.sh.
# It is not intended for manual editing.
class CargoLlvmCov < Formula
  desc "Cargo subcommand for LLVM source-based code coverage (-Z instrument-coverage)"
  homepage "https://github.com/taiki-e/cargo-llvm-cov"
  version "0.1.15"
  license any_of: ["Apache-2.0", "MIT"]

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.1.15/cargo-llvm-cov-x86_64-apple-darwin.tar.gz"
      sha256 "19f11d48cf447146c2016312e985858d48a162229d167409bd6148f57dad93dd"
    end
  end
  on_linux do
    if Hardware::CPU.intel?
      url "https://github.com/taiki-e/cargo-llvm-cov/releases/download/v0.1.15/cargo-llvm-cov-x86_64-unknown-linux-musl.tar.gz"
      sha256 "ebdec5d6bfa4abf4521932855739221aea964b52c9a914e4a682ee672497a2cf"
    end
  end

  def install
    bin.install "cargo-llvm-cov"
  end

  test do
    system "#{bin}/cargo-llvm-cov", "llvm-cov", "--version"
  end
end
