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-1.7.0 spec/read_limits_config_spec.rb
format_parser-1.6.0 spec/read_limits_config_spec.rb
format_parser-1.5.0 spec/read_limits_config_spec.rb
format_parser-1.4.2 spec/read_limits_config_spec.rb
format_parser-1.4.1 spec/read_limits_config_spec.rb
format_parser-1.4.0 spec/read_limits_config_spec.rb
format_parser-1.3.0 spec/read_limits_config_spec.rb
format_parser-1.2.1 spec/read_limits_config_spec.rb
format_parser-1.2.0 spec/read_limits_config_spec.rb
format_parser-1.1.0 spec/read_limits_config_spec.rb
format_parser-1.0.0 spec/read_limits_config_spec.rb
format_parser-0.29.1 spec/read_limits_config_spec.rb
format_parser-0.29.0 spec/read_limits_config_spec.rb
format_parser-0.28.0 spec/read_limits_config_spec.rb
format_parser-0.27.0 spec/read_limits_config_spec.rb
format_parser-0.26.0 spec/read_limits_config_spec.rb
format_parser-0.25.6 spec/read_limits_config_spec.rb
format_parser-0.25.5 spec/read_limits_config_spec.rb
format_parser-0.25.4 spec/read_limits_config_spec.rb
format_parser-0.25.3 spec/read_limits_config_spec.rb