Sha256: 137c25698d13445dafd43f18cfc21b7efc445830252d5b0f199b6b9eea56c7e7

Contents?: true

Size: 700 Bytes

Versions: 105

Compression:

Stored size: 700 Bytes

Contents

# encoding: utf-8
require "logstash/instrument/null_metric"
require "logstash/instrument/namespaced_metric"
require_relative "../../support/shared_examples"
require_relative "../../support/matchers"
require "spec_helper"

describe LogStash::Instrument::NullMetric do

  let(:key) { "test" }
  let(:collector) { [] }
  subject { LogStash::Instrument::NullMetric.new(collector) }

  it "defines the same interface as `Metric`" do
    expect(described_class).to implement_interface_of(LogStash::Instrument::Metric)
  end

  describe "#namespace" do
    it "return a NamespacedNullMetric" do
      expect(subject.namespace(key)).to be_kind_of LogStash::Instrument::NamespacedNullMetric
    end
  end
end

Version data entries

105 entries across 102 versions & 11 rubygems

Version Path
logstash-core-6.0.0-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.6.4-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-6.0.0.rc2-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.6.3-java spec/logstash/instrument/null_metric_spec.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/logstash-core-5.2.1-java/spec/logstash/instrument/null_metric_spec.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/logstash-core-5.2.1-java/spec/logstash/instrument/null_metric_spec.rb
logstash-core-6.0.0.rc1-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.6.2-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.6.1-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.5.3-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.6.0-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-6.0.0.beta2-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.5.2-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-6.0.0.beta1-java spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.5.1-java spec/logstash/instrument/null_metric_spec.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.1.snapshot1-java/spec/logstash/instrument/null_metric_spec.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.1.snapshot1-java/spec/logstash/instrument/null_metric_spec.rb
logstash-core-5.5.1.snapshot1-java spec/logstash/instrument/null_metric_spec.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.0-java/spec/logstash/instrument/null_metric_spec.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.4.0-java/spec/logstash/instrument/null_metric_spec.rb