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-0.15.0 spec/read_limits_config_spec.rb
format_parser-0.14.1 spec/read_limits_config_spec.rb
format_parser-0.14.0 spec/read_limits_config_spec.rb
format_parser-0.13.6 spec/read_limits_config_spec.rb
format_parser-0.13.5 spec/read_limits_config_spec.rb
format_parser-0.13.4 spec/read_limits_config_spec.rb
format_parser-0.13.3 spec/read_limits_config_spec.rb
format_parser-0.13.2 spec/read_limits_config_spec.rb
format_parser-0.13.1 spec/read_limits_config_spec.rb
format_parser-0.13.0 spec/read_limits_config_spec.rb
format_parser-0.12.4 spec/read_limits_config_spec.rb
format_parser-0.12.2 spec/read_limits_config_spec.rb
format_parser-0.12.1 spec/read_limits_config_spec.rb
format_parser-0.12.0 spec/read_limits_config_spec.rb
format_parser-0.11.0 spec/read_limits_config_spec.rb
format_parser-0.10.0 spec/read_limits_config_spec.rb
format_parser-0.9.4 spec/read_limits_config_spec.rb
format_parser-0.9.3 spec/read_limits_config_spec.rb
format_parser-0.9.0 spec/read_limits_config_spec.rb
format_parser-0.8.0 spec/read_limits_config_spec.rb