Sha256: 8d7171761b6dec13e39ced68f526e2f6b0903298a3c369502e14827946f41ff5

Contents?: true

Size: 400 Bytes

Versions: 39

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'
require 'puppet/util/profiler'

describe Puppet::Util::Profiler::WallClock do

  it "logs the number of seconds it took to execute the segment" do
    profiler = Puppet::Util::Profiler::WallClock.new(nil, nil)

    message = profiler.do_finish(profiler.start(["foo", "bar"], "Testing"), ["foo", "bar"], "Testing")[:msg]

    message.should =~ /took \d\.\d{4} seconds/
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
puppet-3.8.7 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.6 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.5 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.4 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.3 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.2 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb