Class: SQLite3::TestSQLite3
- Defined in:
- lib/sqlite3-1.5.3-arm64-darwin/test/test_sqlite3.rb,
lib/sqlite3-1.5.3-x86_64-darwin/test/test_sqlite3.rb
Instance Method Summary collapse
- #test_compiled_version_and_loaded_version ⇒ Object
- #test_libversion ⇒ Object
- #test_threadsafe ⇒ Object
- #test_threadsafe? ⇒ Boolean
- #test_version_strings ⇒ Object
Methods inherited from TestCase
Instance Method Details
#test_compiled_version_and_loaded_version ⇒ Object
26 27 28 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_sqlite3.rb', line 26 def test_compiled_version_and_loaded_version assert_equal(SQLite3::SQLITE_VERSION, SQLite3::SQLITE_LOADED_VERSION) end |
#test_libversion ⇒ Object
5 6 7 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_sqlite3.rb', line 5 def test_libversion assert_not_nil SQLite3.libversion end |
#test_threadsafe ⇒ Object
9 10 11 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_sqlite3.rb', line 9 def test_threadsafe assert_not_nil SQLite3.threadsafe end |
#test_threadsafe? ⇒ Boolean
13 14 15 16 17 18 19 |
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_sqlite3.rb', line 13 def test_threadsafe? if SQLite3.threadsafe > 0 assert SQLite3.threadsafe? else refute SQLite3.threadsafe? end end |