Class: Sqlite::DisplayTestParser

Inherits:
Object
  • Object
show all
Includes:
CommonTestParser
Defined in:
lib/parsers/display_test_parser.rb

Constant Summary

Constants included from CommonTestParser

CommonTestParser::COMMENT

Instance Attribute Summary

Attributes included from CommonTestParser

#final, #result

Instance Method Summary collapse

Methods included from CommonTestParser

#choose, #get, #has?, #initialize

Instance Method Details

#get_finalObject



9
10
11
12
# File 'lib/parsers/display_test_parser.rb', line 9

def get_final
  # Assume has_final? is true
  get(:query)
end

#has_final?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/parsers/display_test_parser.rb', line 5

def has_final?
  has?(:query)
end

#parse(test) ⇒ Object



14
15
16
# File 'lib/parsers/display_test_parser.rb', line 14

def parse(test)
  final_parse test, { expected: get_final }
end