<commit_before>class Testkube < Formula
  desc "Kubernetes-native framework for test definition and execution"
  homepage "https://testkube.io"
  # testkube should only be updated every 5 releases on multiples of 5
  url "https://github.com/kubeshop/testkube/archive/v1.6.15.tar.gz"
  sha256 "a25fc9bcd2a9f22e3baaf7ed41ff4a1741995648c668420211371914a9d22f53"
  license "MIT"
  head "https://github.com/kubeshop/testkube.git", branch: "main"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a5408f1196499aa11b23c2d8dd3f7aec6371cd8a8780522c1baeb267fbc00665"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a5408f1196499aa11b23c2d8dd3f7aec6371cd8a8780522c1baeb267fbc00665"
    sha256 cellar: :any_skip_relocation, monterey:       "bb8943b89bb5272bfe270eb4c0920c3e0c227165562443e072090e456a39e936"
    sha256 cellar: :any_skip_relocation, big_sur:        "bb8943b89bb5272bfe270eb4c0920c3e0c227165562443e072090e456a39e936"
    sha256 cellar: :any_skip_relocation, catalina:       "bb8943b89bb5272bfe270eb4c0920c3e0c227165562443e072090e456a39e936"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "058526538a0eb5d19c1bac6764a2913d868d9dd63b6547927be9731d27cc261e"
  end

  depends_on "go" => :build
  depends_on "helm"
  depends_on "kubernetes-cli"

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.builtBy=#{tap.user}
    ]

    system "go", "build", *std_go_args(output: bin/"kubectl-testkube", ldflags: ldflags),
      "cmd/kubectl-testkube/main.go"

    bin.install_symlink "kubectl-testkube" => "testkube"

    generate_completions_from_executable(bin/"kubectl-testkube", "completion")
  end

  test do
    output = shell_output("#{bin}/kubectl-testkube get tests 2>&1", 1)
    assert_match("error: invalid configuration: no configuration has been provided", output)

    output = shell_output("#{bin}/kubectl-testkube help")
    assert_match("Testkube entrypoint for kubectl plugin", output)
  end
end
<commit_msg>testkube: update 1.6.15 bottle.<commit_after>class Testkube < Formula
  desc "Kubernetes-native framework for test definition and execution"
  homepage "https://testkube.io"
  # testkube should only be updated every 5 releases on multiples of 5
  url "https://github.com/kubeshop/testkube/archive/v1.6.15.tar.gz"
  sha256 "a25fc9bcd2a9f22e3baaf7ed41ff4a1741995648c668420211371914a9d22f53"
  license "MIT"
  head "https://github.com/kubeshop/testkube.git", branch: "main"

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a10e5388cfec8d57f40721a7c9c7e5ac2f7d3b566cc34d930882bed645257c3e"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "a10e5388cfec8d57f40721a7c9c7e5ac2f7d3b566cc34d930882bed645257c3e"
    sha256 cellar: :any_skip_relocation, monterey:       "f8a798b38fec5c3a25846591b4cb56cfd2f1acd87e3d8300de664212dae259d0"
    sha256 cellar: :any_skip_relocation, big_sur:        "f8a798b38fec5c3a25846591b4cb56cfd2f1acd87e3d8300de664212dae259d0"
    sha256 cellar: :any_skip_relocation, catalina:       "f8a798b38fec5c3a25846591b4cb56cfd2f1acd87e3d8300de664212dae259d0"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "e7f0f02fe30de9b01fce961c27b31f2d5e02b8748bf072f808f56390d7b47d86"
  end

  depends_on "go" => :build
  depends_on "helm"
  depends_on "kubernetes-cli"

  def install
    ENV["CGO_ENABLED"] = "0"
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.builtBy=#{tap.user}
    ]

    system "go", "build", *std_go_args(output: bin/"kubectl-testkube", ldflags: ldflags),
      "cmd/kubectl-testkube/main.go"

    bin.install_symlink "kubectl-testkube" => "testkube"

    generate_completions_from_executable(bin/"kubectl-testkube", "completion")
  end

  test do
    output = shell_output("#{bin}/kubectl-testkube get tests 2>&1", 1)
    assert_match("error: invalid configuration: no configuration has been provided", output)

    output = shell_output("#{bin}/kubectl-testkube help")
    assert_match("Testkube entrypoint for kubectl plugin", output)
  end
end

{'fraction_non_alphanumeric': 0.10208926875593542, 'fraction_numerical': 0.15669515669515668, 'mean_word_length': 4.859527121001391, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3262276', 'n_tokens_mistral': 2112, 'n_tokens_neox': 1757, 'n_words': 273}