Sha256: 6eb6e16e8e0d8abdf80ccd9ff264dd2c467f7333965d86a9c50d7a15c84b8e22

Contents?: true

Size: 545 Bytes

Versions: 44

Compression:

Stored size: 545 Bytes

Contents

require "spec_helper"
require "gitlab_exporter/ruby"
require "gitlab_exporter/prober"

describe GitLab::Exporter::RubyProber do
  let(:prober) { GitLab::Exporter::Prober.new(**options) }

  let(:options) do
    {
      ruby: {
        class_name: described_class.to_s,
        methods: %w[probe_gc],
        opts: { quantiles: false }
      }
    }
  end

  it "probes and returns GC stats" do
    prober.probe_all

    output = StringIO.new
    prober.write_to(output)
    expect(output.string).to match(/ruby_gc_stat_count \d+ \d+/)
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
gitlab-exporter-15.0.0 spec/ruby_spec.rb
gitlab-exporter-14.5.0 spec/ruby_spec.rb
gitlab-exporter-14.4.0 spec/ruby_spec.rb
gitlab-exporter-14.3.0 spec/ruby_spec.rb
gitlab-exporter-14.2.0 spec/ruby_spec.rb
gitlab-exporter-14.1.0 spec/ruby_spec.rb
gitlab-exporter-14.0.0 spec/ruby_spec.rb
gitlab-exporter-13.5.0 spec/ruby_spec.rb
gitlab-exporter-13.4.1 spec/ruby_spec.rb
gitlab-exporter-13.4.0 spec/ruby_spec.rb
gitlab-exporter-13.3.1 spec/ruby_spec.rb
gitlab-exporter-13.3.0 spec/ruby_spec.rb
gitlab-exporter-13.2.0 spec/ruby_spec.rb
gitlab-exporter-13.1.0 spec/ruby_spec.rb
gitlab-exporter-13.0.3 spec/ruby_spec.rb
gitlab-exporter-13.0.0 spec/ruby_spec.rb
gitlab-exporter-12.1.1 spec/ruby_spec.rb
gitlab-exporter-12.1.0 spec/ruby_spec.rb
gitlab-exporter-12.0.1 spec/ruby_spec.rb
gitlab-exporter-12.0.0 spec/ruby_spec.rb