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: connection.rb
    path of file: ./repos/tomo/lib/tomo/testing
    
    the code of the file until where you have to start completion: module Tomo
  module Testing
    class Connection < Tomo::SSH::Connection
      def initialize(host, opt
    
      def mock_child_process(*_ssh_args, on_data:)
        result = host.result_for(host.scripts.last)

        on_data.call(result.stdout) unless result.stdout.empty?
        on_data.call(result.stderr) unless result.stderr.empty?
        result
      end