spec/helpers.rb
# stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet - holding instance variable of ProcessingManager
def unique_type_patterns(type: :all, stage: nil, tag: nil, options: {} )
    results = parsed_example_tokens(type: type, stage: stage, tag: tag, options: options)
    patterns = results.map{ |parsed| parsed[1] }.uniq.sort.map{ |pattern| [pattern, []] }.to_h
    results.each{ |r| patterns[r[1]] << r[0] }
    patterns.keys.sort.each do |pattern|
      puts pattern.join(' ')
      patterns[pattern].each{ |e| puts '     ' + e }
    end
    puts "\n\n PARSING FAILURES"
    puts failed_to_parse(tag: tag)
  end
def unique_type_patterns ( type : :all , stage : nil , tag : nil , options : { } ) results = parsed_example_tokens ( type : type , stage : stage , tag : tag , options : options ) patterns = results . map { | parsed | parsed [ 1 ] } . uniq . sort . map { | pattern | [ pattern , [ ] ] } . to_h results . each { | r | patterns [ r [ 1 ] ] << r [ 0 ] } patterns . keys . sort . each do | pattern | puts pattern . join ( ' ' ) patterns [ pattern ] . each { | e | puts '     ' + e } end puts "\n\n PARSING FAILURES" puts failed_to_parse ( tag : tag ) end
stage should be a SegmentSet-holding instance variable of ProcessingManager
stage should be a SegmentSet - holding instance variable of ProcessingManager
type
<not_specific>
stage
<not_specific>
tag
<not_specific>
options
<not_specific>