Sha256: 0f9dbda3a7203835eaccf6a4105814875711c380340220be9382fe7f6bfd840f

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

require "spec_helper"
require "metric_fu/metrics/hotspots/analysis/record"

describe MetricFu::RcovHotspot do
  describe "map" do
    let(:zero_row) do
      MetricFu::Record.new({"percentage_uncovered"=>0.0}, nil)
    end

    let(:non_zero_row) do
      MetricFu::Record.new({"percentage_uncovered"=>0.75}, nil)
    end

    it {subject.map(zero_row).should eql(0.0)}
    it {subject.map(non_zero_row).should eql(0.75)}
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
metric_fu-4.6.0 spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb
metric_fu-4.5.2 spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb
metric_fu-4.5.1 spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb
metric_fu-4.4.4 spec/metric_fu/metrics/rcov/rcov_hotspot_spec.rb