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-11.19.0 spec/ruby_spec.rb
gitlab-exporter-11.18.2 spec/ruby_spec.rb
gitlab-exporter-11.18.1 spec/ruby_spec.rb
gitlab-exporter-11.18.0 spec/ruby_spec.rb
gitlab-exporter-11.17.1 spec/ruby_spec.rb
gitlab-exporter-11.17.0 spec/ruby_spec.rb
gitlab-exporter-11.16.0 spec/ruby_spec.rb
gitlab-exporter-11.15.2 spec/ruby_spec.rb
gitlab-exporter-11.15.1 spec/ruby_spec.rb
gitlab-exporter-11.15.0 spec/ruby_spec.rb
gitlab-exporter-11.14.0 spec/ruby_spec.rb
gitlab-exporter-11.13.1 spec/ruby_spec.rb
gitlab-exporter-11.13.0 spec/ruby_spec.rb
gitlab-exporter-11.12.0 spec/ruby_spec.rb
gitlab-exporter-11.11.0 spec/ruby_spec.rb
gitlab-exporter-11.10.0 spec/ruby_spec.rb
gitlab-exporter-11.9.0 spec/ruby_spec.rb
gitlab-exporter-11.8.0 spec/ruby_spec.rb
gitlab-exporter-11.7.0 spec/ruby_spec.rb
gitlab-exporter-11.6.0 spec/ruby_spec.rb