Sha256: baa6de6d882e4d98a80ed5f7d703c99dc660bad775e7034067b981080dc668dd

Contents?: true

Size: 735 Bytes

Versions: 18

Compression:

Stored size: 735 Bytes

Contents

# encoding: UTF-8

require File.expand_path("helper", File.dirname(__FILE__))
require "lint/hyper_log_log"

class TestDistributedCommandsOnHyperLogLog < Test::Unit::TestCase

  include Helper::Distributed
  include Lint::HyperLogLog

  def test_pfmerge
    target_version "2.8.9" do
      assert_raise Redis::Distributed::CannotDistribute do
        r.pfadd "foo", "s1"
        r.pfadd "bar", "s2"

        assert r.pfmerge("res", "foo", "bar")
      end
    end
  end

  def test_pfcount_multiple_keys_diff_nodes
    target_version "2.8.9" do
      assert_raise Redis::Distributed::CannotDistribute do
        r.pfadd "foo", "s1"
        r.pfadd "bar", "s2"

        assert r.pfcount("res", "foo", "bar")
      end
    end
  end

end

Version data entries

18 entries across 17 versions & 7 rubygems

Version Path
finsync_redis-3.3.5 test/distributed_commands_on_hyper_log_log_test.rb
redis-3.3.5 test/distributed_commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_commands_on_hyper_log_log_test.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/redis-3.3.3/test/distributed_commands_on_hyper_log_log_test.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/redis-3.3.3/test/distributed_commands_on_hyper_log_log_test.rb
redis-3.3.3 test/distributed_commands_on_hyper_log_log_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.2/test/distributed_commands_on_hyper_log_log_test.rb
abaci-0.3.0 vendor/bundle/gems/redis-3.3.1/test/distributed_commands_on_hyper_log_log_test.rb
redis-3.3.2 test/distributed_commands_on_hyper_log_log_test.rb
redis-3.3.1 test/distributed_commands_on_hyper_log_log_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/redis-3.3.0/test/distributed_commands_on_hyper_log_log_test.rb
redis-3.3.0 test/distributed_commands_on_hyper_log_log_test.rb
discourse-redis-3.2.2 test/distributed_commands_on_hyper_log_log_test.rb
redis-3.2.2 test/distributed_commands_on_hyper_log_log_test.rb
redis-3.2.1 test/distributed_commands_on_hyper_log_log_test.rb
redis-3.2.0 test/distributed_commands_on_hyper_log_log_test.rb