Sha256: 445634366f7ea80eaa13e949fde50ab40ed1dddd2dfeca4a53253f1504652b35

Contents?: true

Size: 793 Bytes

Versions: 81

Compression:

Stored size: 793 Bytes

Contents

require 'spec_helper'

describe FormatParser::ReadLimitsConfig do
  it 'provides balanced values based on the initial byte read limit per parser' do
    config = FormatParser::ReadLimitsConfig.new(1024)

    expect(config.max_read_bytes_per_parser).to be_kind_of(Integer)
    expect(config.max_read_bytes_per_parser).to be > 0

    expect(config.cache_page_size).to be_kind_of(Integer)
    expect(config.cache_page_size).to be > 0

    expect(config.max_pagefaults_per_parser).to be_kind_of(Integer)
    expect(config.max_pagefaults_per_parser).to be > 0

    expect(config.max_reads_per_parser).to be_kind_of(Integer)
    expect(config.max_reads_per_parser).to be > 0

    expect(config.max_seeks_per_parser).to be_kind_of(Integer)
    expect(config.max_seeks_per_parser).to be > 0
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
format_parser-2.10.0 spec/read_limits_config_spec.rb
format_parser-2.9.0 spec/read_limits_config_spec.rb
format_parser-2.8.0 spec/read_limits_config_spec.rb
format_parser-2.7.2 spec/read_limits_config_spec.rb
format_parser-2.7.1 spec/read_limits_config_spec.rb
format_parser-2.7.0 spec/read_limits_config_spec.rb
format_parser-2.6.0 spec/read_limits_config_spec.rb
format_parser-2.5.0 spec/read_limits_config_spec.rb
format_parser-2.4.5 spec/read_limits_config_spec.rb
format_parser-2.4.4 spec/read_limits_config_spec.rb
format_parser-2.4.3 spec/read_limits_config_spec.rb
format_parser-2.3.0 spec/read_limits_config_spec.rb
format_parser-2.2.1 spec/read_limits_config_spec.rb
format_parser-2.2.0 spec/read_limits_config_spec.rb
format_parser-2.1.0 spec/read_limits_config_spec.rb
format_parser-2.0.0 spec/read_limits_config_spec.rb
format_parser-2.0.0.pre.4 spec/read_limits_config_spec.rb
format_parser-2.0.0.pre.3 spec/read_limits_config_spec.rb
format_parser-2.0.0.pre.2 spec/read_limits_config_spec.rb
format_parser-2.0.0.pre spec/read_limits_config_spec.rb