Sha256: e7daadf2ba0b49303c118967aff802ad6ff12f73855a5c1bea70c7ff7866b650

Contents?: true

Size: 802 Bytes

Versions: 193

Compression:

Stored size: 802 Bytes

Contents

module PalindromicFixtureSharedContext
  extend RSpec::Core::SharedContext
  include IntervalSkipListSpecHelper

  attr_reader :list, :node

  def construct_interval_skip_list
    @list = IntervalSkipList.new
  end

  def expected_node_heights
    [3, 2, 1, 3, 1, 2, 3]
  end

  def populate_interval_skip_list
    @list.insert(1..3, :a)
    @list.insert(1..5, :b)
    @list.insert(1..7, :c)
    @list.insert(1..9, :d)
    @list.insert(1..11, :e)
    @list.insert(1..13, :f)
    @list.insert(5..13, :g)
  end

  def make_it_determinisitic
    extend NextNodeHeightIsDeterministicSharedContext # use the method without getting the filter
    next_node_height_is_deterministic
  end

  before :each do
    construct_interval_skip_list
    make_it_determinisitic
    populate_interval_skip_list
  end
end

Version data entries

193 entries across 178 versions & 30 rubygems

Version Path
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/treetop-1.4.15/spec/runtime/interval_skip_list/palindromic_fixture.rb