Sha256: e0e79271db542d79ce98695094946b638b9b5eef4b326a92de29f3b4d41f744f

Contents?: true

Size: 674 Bytes

Versions: 21

Compression:

Stored size: 674 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 eql(before)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
amalgalite-0.11.0-x86-mswin32 spec/sqlite3/status_spec.rb
amalgalite-0.11.0-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-0.10.2-x86-mswin32 spec/sqlite3/status_spec.rb
amalgalite-0.10.2-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-0.10.1-x86-mswin32 spec/sqlite3/status_spec.rb
amalgalite-0.10.1-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-0.10.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.11.0 spec/sqlite3/status_spec.rb
amalgalite-0.10.2 spec/sqlite3/status_spec.rb
amalgalite-0.10.0 spec/sqlite3/status_spec.rb
amalgalite-0.10.1 spec/sqlite3/status_spec.rb
amalgalite-0.7.5-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.5 spec/sqlite3/status_spec.rb
amalgalite-0.7.7-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.6-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.7.6 spec/sqlite3/status_spec.rb
amalgalite-0.7.7 spec/sqlite3/status_spec.rb
amalgalite-0.9.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.8.0-x86-mswin32-60 spec/sqlite3/status_spec.rb
amalgalite-0.8.0 spec/sqlite3/status_spec.rb