juno 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -1
- data/.travis.yml +6 -0
- data/Gemfile +16 -9
- data/README.md +92 -34
- data/Rakefile +23 -5
- data/benchmarks/run.rb +19 -22
- data/juno.gemspec +0 -3
- data/lib/juno/adapters/activerecord.rb +58 -0
- data/lib/juno/adapters/cassandra.rb +47 -0
- data/lib/juno/adapters/couch.rb +43 -0
- data/lib/juno/adapters/datamapper.rb +64 -0
- data/lib/juno/adapters/dbm.rb +17 -0
- data/lib/juno/adapters/file.rb +58 -0
- data/lib/juno/adapters/fog.rb +42 -0
- data/lib/juno/adapters/gdbm.rb +17 -0
- data/lib/juno/adapters/localmemcache.rb +18 -0
- data/lib/juno/adapters/memcached.rb +11 -0
- data/lib/juno/adapters/memcached_dalli.rb +46 -0
- data/lib/juno/adapters/memcached_native.rb +47 -0
- data/lib/juno/adapters/memory.rb +30 -0
- data/lib/juno/adapters/mongo.rb +43 -0
- data/lib/juno/adapters/null.rb +28 -0
- data/lib/juno/adapters/pstore.rb +51 -0
- data/lib/juno/adapters/redis.rb +43 -0
- data/lib/juno/adapters/riak.rb +46 -0
- data/lib/juno/adapters/sdbm.rb +27 -0
- data/lib/juno/adapters/sequel.rb +50 -0
- data/lib/juno/adapters/sqlite.rb +52 -0
- data/lib/juno/adapters/tokyocabinet.rb +33 -0
- data/lib/juno/adapters/yaml.rb +13 -0
- data/lib/juno/base.rb +11 -89
- data/lib/juno/builder.rb +30 -0
- data/lib/juno/cache.rb +64 -0
- data/lib/juno/expires.rb +6 -10
- data/lib/juno/proxy.rb +62 -3
- data/lib/juno/stack.rb +27 -11
- data/lib/juno/transformer.rb +106 -0
- data/lib/juno/version.rb +1 -1
- data/lib/juno.rb +81 -29
- data/spec/adapter_activerecord_spec.rb +41 -0
- data/spec/adapter_cassandra_spec.rb +27 -0
- data/spec/adapter_couch_spec.rb +27 -0
- data/spec/adapter_datamapper_spec.rb +61 -0
- data/spec/adapter_dbm_spec.rb +27 -0
- data/spec/adapter_file_spec.rb +27 -0
- data/spec/adapter_fog_spec.rb +35 -0
- data/spec/adapter_gdbm_spec.rb +27 -0
- data/spec/adapter_localmemcache_spec.rb +27 -0
- data/spec/adapter_memcached_dalli_spec.rb +28 -0
- data/spec/adapter_memcached_native_spec.rb +28 -0
- data/spec/adapter_memcached_spec.rb +28 -0
- data/spec/adapter_memory_spec.rb +42 -0
- data/spec/adapter_mongo_spec.rb +27 -0
- data/spec/adapter_pstore_spec.rb +30 -0
- data/spec/adapter_redis_spec.rb +28 -0
- data/spec/adapter_riak_spec.rb +31 -0
- data/spec/adapter_sdbm_spec.rb +27 -0
- data/spec/adapter_sequel_spec.rb +27 -0
- data/spec/adapter_sqlite_spec.rb +27 -0
- data/spec/adapter_tokyocabinet_spec.rb +27 -0
- data/spec/adapter_yaml_spec.rb +30 -0
- data/spec/cache_file_memory_spec.rb +50 -0
- data/spec/cache_memory_null_spec.rb +39 -0
- data/spec/expires_file_spec.rb +82 -0
- data/spec/expires_memory_spec.rb +59 -0
- data/spec/generate.rb +736 -0
- data/spec/helper.rb +39 -0
- data/spec/junospecs.rb +1540 -0
- data/spec/null_adapter_spec.rb +33 -0
- data/spec/proxy_expires_memory_spec.rb +63 -0
- data/spec/proxy_redis_spec.rb +38 -0
- data/spec/simple_activerecord_spec.rb +52 -0
- data/spec/simple_cassandra_spec.rb +53 -0
- data/spec/simple_couch_spec.rb +52 -0
- data/spec/simple_datamapper_spec.rb +54 -0
- data/spec/simple_datamapper_with_repository_spec.rb +54 -0
- data/spec/simple_dbm_spec.rb +52 -0
- data/spec/simple_file_spec.rb +52 -0
- data/spec/simple_fog_spec.rb +60 -0
- data/spec/simple_gdbm_spec.rb +52 -0
- data/spec/simple_hashfile_spec.rb +52 -0
- data/spec/simple_localmemcache_spec.rb +52 -0
- data/spec/simple_memcached_dalli_spec.rb +53 -0
- data/spec/simple_memcached_native_spec.rb +53 -0
- data/spec/simple_memcached_spec.rb +53 -0
- data/spec/simple_memory_spec.rb +52 -0
- data/spec/simple_mongo_spec.rb +52 -0
- data/spec/simple_null_spec.rb +43 -0
- data/spec/simple_pstore_spec.rb +52 -0
- data/spec/simple_redis_spec.rb +53 -0
- data/spec/simple_riak_spec.rb +56 -0
- data/spec/simple_sdbm_spec.rb +52 -0
- data/spec/simple_sequel_spec.rb +52 -0
- data/spec/simple_sqlite_spec.rb +52 -0
- data/spec/simple_tokyocabinet_spec.rb +52 -0
- data/spec/simple_yaml_spec.rb +52 -0
- data/spec/stack_file_memory_spec.rb +43 -0
- data/spec/stack_memory_file_spec.rb +42 -0
- data/spec/transformer_bson_spec.rb +44 -0
- data/spec/transformer_json_spec.rb +44 -0
- data/spec/transformer_marshal_base64_spec.rb +60 -0
- data/spec/transformer_marshal_escape_spec.rb +60 -0
- data/spec/transformer_marshal_md5_spec.rb +60 -0
- data/spec/transformer_marshal_md5_spread_spec.rb +60 -0
- data/spec/transformer_msgpack_spec.rb +44 -0
- data/spec/transformer_yaml_spec.rb +59 -0
- metadata +164 -108
- data/lib/juno/activerecord.rb +0 -55
- data/lib/juno/cassandra.rb +0 -45
- data/lib/juno/couch.rb +0 -43
- data/lib/juno/datamapper.rb +0 -63
- data/lib/juno/dbm.rb +0 -15
- data/lib/juno/file.rb +0 -62
- data/lib/juno/fog.rb +0 -48
- data/lib/juno/gdbm.rb +0 -15
- data/lib/juno/hashfile.rb +0 -12
- data/lib/juno/localmemcache.rb +0 -16
- data/lib/juno/memcached.rb +0 -7
- data/lib/juno/memcached_dalli.rb +0 -55
- data/lib/juno/memcached_native.rb +0 -56
- data/lib/juno/memory.rb +0 -7
- data/lib/juno/mongodb.rb +0 -43
- data/lib/juno/null.rb +0 -23
- data/lib/juno/pstore.rb +0 -49
- data/lib/juno/redis.rb +0 -46
- data/lib/juno/riak.rb +0 -45
- data/lib/juno/sdbm.rb +0 -15
- data/lib/juno/sequel.rb +0 -48
- data/lib/juno/sqlite.rb +0 -50
- data/lib/juno/tokyocabinet.rb +0 -36
- data/lib/juno/yaml.rb +0 -9
- data/test/helper.rb +0 -212
- data/test/test_activerecord.rb +0 -33
- data/test/test_cassandra.rb +0 -13
- data/test/test_couch.rb +0 -13
- data/test/test_datamapper.rb +0 -64
- data/test/test_dbm.rb +0 -13
- data/test/test_expires.rb +0 -9
- data/test/test_file.rb +0 -9
- data/test/test_fog.rb +0 -17
- data/test/test_gdbm.rb +0 -13
- data/test/test_hashfile.rb +0 -9
- data/test/test_localmemcache.rb +0 -13
- data/test/test_memcached.rb +0 -14
- data/test/test_memcached_dalli.rb +0 -14
- data/test/test_memcached_native.rb +0 -14
- data/test/test_memory.rb +0 -9
- data/test/test_mongodb.rb +0 -13
- data/test/test_null.rb +0 -9
- data/test/test_proxy.rb +0 -9
- data/test/test_pstore.rb +0 -9
- data/test/test_redis.rb +0 -13
- data/test/test_riak.rb +0 -13
- data/test/test_sdbm.rb +0 -13
- data/test/test_sequel.rb +0 -13
- data/test/test_sqlite.rb +0 -13
- data/test/test_stack.rb +0 -10
- data/test/test_tokyocabinet.rb +0 -13
- data/test/test_yaml.rb +0 -9
- data/unsupported/test_tokyotyrant.rb +0 -13
- data/unsupported/tokyotyrant.rb +0 -29
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile")).close
|
|
6
|
+
|
|
7
|
+
describe "simple_hashfile" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:HashFile, :dir => File.join(make_tempdir, "simple_hashfile"))
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_hashfile not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_hashfile not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:LocalMemCache, :file => File.join(make_tempdir, "simple_localmemcache")).close
|
|
6
|
+
|
|
7
|
+
describe "simple_localmemcache" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:LocalMemCache, :file => File.join(make_tempdir, "simple_localmemcache"))
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_localmemcache not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_localmemcache not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:MemcachedDalli, :server => "localhost:22122", :namespace => "simple_memcached_dalli").close
|
|
6
|
+
|
|
7
|
+
describe "simple_memcached_dalli" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:MemcachedDalli, :server => "localhost:22122", :namespace => "simple_memcached_dalli")
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
|
46
|
+
|
|
47
|
+
end
|
|
48
|
+
rescue LoadError => ex
|
|
49
|
+
puts "Test simple_memcached_dalli not executed: #{ex.message}"
|
|
50
|
+
rescue Exception => ex
|
|
51
|
+
puts "Test simple_memcached_dalli not executed: #{ex.message}"
|
|
52
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
53
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:MemcachedNative, :server => "localhost:22122", :namespace => "simple_memcached_native").close
|
|
6
|
+
|
|
7
|
+
describe "simple_memcached_native" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:MemcachedNative, :server => "localhost:22122", :namespace => "simple_memcached_native")
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
|
46
|
+
|
|
47
|
+
end
|
|
48
|
+
rescue LoadError => ex
|
|
49
|
+
puts "Test simple_memcached_native not executed: #{ex.message}"
|
|
50
|
+
rescue Exception => ex
|
|
51
|
+
puts "Test simple_memcached_native not executed: #{ex.message}"
|
|
52
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
53
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:Memcached, :server => "localhost:22122", :namespace => "simple_memcached").close
|
|
6
|
+
|
|
7
|
+
describe "simple_memcached" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:Memcached, :server => "localhost:22122", :namespace => "simple_memcached")
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
|
46
|
+
|
|
47
|
+
end
|
|
48
|
+
rescue LoadError => ex
|
|
49
|
+
puts "Test simple_memcached not executed: #{ex.message}"
|
|
50
|
+
rescue Exception => ex
|
|
51
|
+
puts "Test simple_memcached not executed: #{ex.message}"
|
|
52
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
53
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:Memory).close
|
|
6
|
+
|
|
7
|
+
describe "simple_memory" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:Memory)
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_memory not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_memory not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:Mongo, :db => 'simple_mongo').close
|
|
6
|
+
|
|
7
|
+
describe "simple_mongo" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:Mongo, :db => 'simple_mongo')
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_mongo not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_mongo not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:Null).close
|
|
6
|
+
|
|
7
|
+
describe "simple_null" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:Null)
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'marshallable_key'
|
|
27
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
28
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
29
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
30
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
31
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
32
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
33
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
34
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
rescue LoadError => ex
|
|
39
|
+
puts "Test simple_null not executed: #{ex.message}"
|
|
40
|
+
rescue Exception => ex
|
|
41
|
+
puts "Test simple_null not executed: #{ex.message}"
|
|
42
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
43
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:PStore, :file => File.join(make_tempdir, "simple_pstore")).close
|
|
6
|
+
|
|
7
|
+
describe "simple_pstore" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:PStore, :file => File.join(make_tempdir, "simple_pstore"))
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_pstore not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_pstore not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:Redis).close
|
|
6
|
+
|
|
7
|
+
describe "simple_redis" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:Redis)
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
it_should_behave_like 'expires_stringkey_stringvalue'
|
|
46
|
+
|
|
47
|
+
end
|
|
48
|
+
rescue LoadError => ex
|
|
49
|
+
puts "Test simple_redis not executed: #{ex.message}"
|
|
50
|
+
rescue Exception => ex
|
|
51
|
+
puts "Test simple_redis not executed: #{ex.message}"
|
|
52
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
53
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
require 'riak'
|
|
6
|
+
|
|
7
|
+
Riak.disable_list_keys_warnings = true
|
|
8
|
+
|
|
9
|
+
Juno.new(:Riak, :bucket => 'simple_riak').close
|
|
10
|
+
|
|
11
|
+
describe "simple_riak" do
|
|
12
|
+
before do
|
|
13
|
+
@store = Juno.new(:Riak, :bucket => 'simple_riak')
|
|
14
|
+
@store.clear
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
after do
|
|
18
|
+
@store.close.should == nil if @store
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
22
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
23
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
24
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
25
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
26
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
27
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
28
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
29
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
30
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
31
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
32
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
33
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
34
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
35
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
36
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
37
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
38
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
44
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
45
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
46
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
47
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
48
|
+
it_should_behave_like 'marshallable_key'
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
rescue LoadError => ex
|
|
52
|
+
puts "Test simple_riak not executed: #{ex.message}"
|
|
53
|
+
rescue Exception => ex
|
|
54
|
+
puts "Test simple_riak not executed: #{ex.message}"
|
|
55
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
56
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Generated file
|
|
2
|
+
require 'helper'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
Juno.new(:SDBM, :file => File.join(make_tempdir, "simple_sdbm")).close
|
|
6
|
+
|
|
7
|
+
describe "simple_sdbm" do
|
|
8
|
+
before do
|
|
9
|
+
@store = Juno.new(:SDBM, :file => File.join(make_tempdir, "simple_sdbm"))
|
|
10
|
+
@store.clear
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
@store.close.should == nil if @store
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it_should_behave_like 'null_objectkey_objectvalue'
|
|
18
|
+
it_should_behave_like 'null_objectkey_stringvalue'
|
|
19
|
+
it_should_behave_like 'null_objectkey_hashvalue'
|
|
20
|
+
it_should_behave_like 'null_stringkey_objectvalue'
|
|
21
|
+
it_should_behave_like 'null_stringkey_stringvalue'
|
|
22
|
+
it_should_behave_like 'null_stringkey_hashvalue'
|
|
23
|
+
it_should_behave_like 'null_hashkey_objectvalue'
|
|
24
|
+
it_should_behave_like 'null_hashkey_stringvalue'
|
|
25
|
+
it_should_behave_like 'null_hashkey_hashvalue'
|
|
26
|
+
it_should_behave_like 'store_objectkey_objectvalue'
|
|
27
|
+
it_should_behave_like 'store_objectkey_stringvalue'
|
|
28
|
+
it_should_behave_like 'store_objectkey_hashvalue'
|
|
29
|
+
it_should_behave_like 'store_stringkey_objectvalue'
|
|
30
|
+
it_should_behave_like 'store_stringkey_stringvalue'
|
|
31
|
+
it_should_behave_like 'store_stringkey_hashvalue'
|
|
32
|
+
it_should_behave_like 'store_hashkey_objectvalue'
|
|
33
|
+
it_should_behave_like 'store_hashkey_stringvalue'
|
|
34
|
+
it_should_behave_like 'store_hashkey_hashvalue'
|
|
35
|
+
it_should_behave_like 'returndifferent_objectkey_objectvalue'
|
|
36
|
+
it_should_behave_like 'returndifferent_objectkey_stringvalue'
|
|
37
|
+
it_should_behave_like 'returndifferent_objectkey_hashvalue'
|
|
38
|
+
it_should_behave_like 'returndifferent_stringkey_objectvalue'
|
|
39
|
+
it_should_behave_like 'returndifferent_stringkey_stringvalue'
|
|
40
|
+
it_should_behave_like 'returndifferent_stringkey_hashvalue'
|
|
41
|
+
it_should_behave_like 'returndifferent_hashkey_objectvalue'
|
|
42
|
+
it_should_behave_like 'returndifferent_hashkey_stringvalue'
|
|
43
|
+
it_should_behave_like 'returndifferent_hashkey_hashvalue'
|
|
44
|
+
it_should_behave_like 'marshallable_key'
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
rescue LoadError => ex
|
|
48
|
+
puts "Test simple_sdbm not executed: #{ex.message}"
|
|
49
|
+
rescue Exception => ex
|
|
50
|
+
puts "Test simple_sdbm not executed: #{ex.message}"
|
|
51
|
+
#puts "#{ex.backtrace.join("\n")}"
|
|
52
|
+
end
|