You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test.rb
    path of file: ./repos/stackneveroverflow/vendor/bundle/ruby/2.3.0/gems/minitest-5.10.2/lib/minitest
    
    the code of the file until where you have to start completion: require "minitest" unless defined? Minitest::Runnable

module Minitest
  ##
  # Subclass Test to crea
    
    def self.runnable_methods
      methods = methods_matching(/^test_/)

      case self.test_order
      when :random, :parallel then
        max = methods.size
        methods.sort.sort_by { rand max }
      when :alpha, :sorted then
        methods.sort
      else
        raise "Unknown test_order: #{self.test_order.inspect}"
      end