Sha256: dac334ff1e245bf8bb49fe655ea1573e1b43c9eaddcad46c78dbe1927b99853b

Contents?: true

Size: 672 Bytes

Versions: 18

Compression:

Stored size: 672 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper.rb"))
require 'amalgalite/sqlite3'
require 'rbconfig'

describe "Amalgalite::SQLite3::Status" do
  it "knows how much memory it has used" do
    Amalgalite::SQLite3.status.memory_used.current.should >= 0
    Amalgalite::SQLite3.status.memory_used.highwater.should >= 0
  end

  it "can reset the highwater value" do
    before = Amalgalite::SQLite3.status.memory_used.highwater
    Amalgalite::SQLite3.status.memory_used.reset!
    Amalgalite::SQLite3.status.memory_used.highwater.should > 0
    after = Amalgalite::SQLite3.status.memory_used.highwater
    after.should_not == before
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
amalgalite-0.4.0 spec/sqlite3/status_spec.rb
amalgalite-0.4.1 spec/sqlite3/status_spec.rb
amalgalite-0.5.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.4.2-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.4.2 spec/sqlite3/status_spec.rb
amalgalite-0.5.1 spec/sqlite3/status_spec.rb
amalgalite-0.5.1-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.5.0 spec/sqlite3/status_spec.rb
amalgalite-0.6.0 spec/sqlite3/status_spec.rb
amalgalite-0.6.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.0 spec/sqlite3/status_spec.rb
amalgalite-0.7.1-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.3-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.1 spec/sqlite3/status_spec.rb
amalgalite-0.7.3 spec/sqlite3/status_spec.rb
amalgalite-0.7.4 spec/sqlite3/status_spec.rb
amalgalite-0.7.4-x86-mswin32-60 spec/sqlite3/status_spec.rb