Sha256: 7c91770f578b3a8b7ed3b0374101846510341220c47f5d25e172c38a2309f3bf

Contents?: true

Size: 716 Bytes

Versions: 37

Compression:

Stored size: 716 Bytes

Contents

require 'spec_helper'
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 be >= 0
    Amalgalite::SQLite3.status.memory_used.highwater.should be >= 0
  end

  it "can reset the highwater value" do
    before = Amalgalite::SQLite3.status.memory_used.highwater
    before.should be > 0

    current = Amalgalite::SQLite3.status.memory_used.current
    Amalgalite::SQLite3.status.memory_used.reset!
    Amalgalite::SQLite3.status.memory_used.highwater.should be == current

    after = Amalgalite::SQLite3.status.memory_used.highwater
    after.should_not eql(before)
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
amalgalite-1.9.4-x64-mingw-ucrt spec/sqlite3/status_spec.rb
amalgalite-1.9.4-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.4-x64-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.4 spec/sqlite3/status_spec.rb
amalgalite-1.9.1-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.1-x64-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.1-x64-mingw-ucrt spec/sqlite3/status_spec.rb
amalgalite-1.9.1 spec/sqlite3/status_spec.rb
amalgalite-1.9.0-x64-mingw-ucrt spec/sqlite3/status_spec.rb
amalgalite-1.9.0-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.0-x64-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.9.0 spec/sqlite3/status_spec.rb
amalgalite-1.8.0-x64-mingw-ucrt spec/sqlite3/status_spec.rb
amalgalite-1.8.0-x64-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.8.0-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.8.0 spec/sqlite3/status_spec.rb
amalgalite-1.7.0-x86-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.7.0-x64-mingw32 spec/sqlite3/status_spec.rb
amalgalite-1.7.0 spec/sqlite3/status_spec.rb
amalgalite-1.6.3-x86-mingw32 spec/sqlite3/status_spec.rb