Module: ADSP::Test::Option

Defined in:
lib/adsp/test/option.rb

Overview

ADSP::Test::Option module.

Constant Summary collapse

BUFFER_LENGTHS =

“0” means default buffer length.

[
  0,
  2
]
.freeze
BOOLS =
[
  true,
  false
]
.freeze

Class Method Summary collapse

Class Method Details

.get_compatible_decompressor_options(compressor_options, buffer_length_name_mapping) {|decompressor_options| ... } ⇒ Object

Yields:

  • (decompressor_options)


56
57
58
59
60
61
62
63
64
# File 'lib/adsp/test/option.rb', line 56

def self.get_compatible_decompressor_options(compressor_options, buffer_length_name_mapping, &_block)
  decompressor_options = {}

  buffer_length_name_mapping.each do |compressor_name, decompressor_name|
    decompressor_options[decompressor_name] = compressor_options[compressor_name]
  end

  yield decompressor_options
end

.get_compressor_options_generator(buffer_length_names) ⇒ Object



52
53
54
# File 'lib/adsp/test/option.rb', line 52

def self.get_compressor_options_generator(buffer_length_names)
  get_buffer_length_option_generator buffer_length_names
end

.get_invalid_compressor_options(buffer_length_names, &block) ⇒ Object



23
24
25
# File 'lib/adsp/test/option.rb', line 23

def self.get_invalid_compressor_options(buffer_length_names, &block)
  get_common_invalid_options buffer_length_names, &block
end

.get_invalid_decompressor_options(buffer_length_names, &block) ⇒ Object



27
28
29
# File 'lib/adsp/test/option.rb', line 27

def self.get_invalid_decompressor_options(buffer_length_names, &block)
  get_common_invalid_options buffer_length_names, &block
end