class Tryouts::FileProcessor

def process

def process
  testrun                     = PrismParser.new(@file).parse
  @global_tally[:file_count] += 1
  @output_manager.file_parsed(@file, testrun.total_tests)
  if @options[:inspect]
    handle_inspect_mode(testrun)
  elsif @options[:generate_only]
    handle_generate_only_mode(testrun)
  else
    execute_tests(testrun)
  end
rescue TryoutSyntaxError => ex
  handle_syntax_error(ex)
rescue StandardError, SystemStackError, LoadError, SecurityError, NoMemoryError => ex
  handle_general_error(ex)
end