class Net::SSH::Test::RemotePacket

of the gets_* methods.
automatically by Net::SSH::Test::Script and Net::SSH::Test::Channel by any
packets that are received by the local (client) host. These are created
This is a specialization of Net::SSH::Test::Packet for representing mock

def process(packet)

(Net::SSH::Test::Script) or your program are wrong.
to be sent). This will happen when either your test script
mismatch (a remote packet was received when a local packet was expected
packets; if it is attempted on a remote packet, then it is an expectation
The #process method should only be called on Net::SSH::Test::LocalPacket
def process(packet)
  raise "received packet type #{packet.read_byte} and was not expecting any packet"
end

def remote?

Returns +true+; this is a remote packet.
def remote?
  true
end

def to_s

input buffer for the packet stream.
received, this method is called and the result concatenated onto the
Net::SSH::Transport::PacketStream and friends. When a remote packet is
Returns this remote packet as a string, suitable for parsing by
def to_s
  @to_s ||= begin
    instantiate!
    string = Net::SSH::Buffer.from(:byte, @type, *types.zip(@data).flatten).to_s
    [string.length, string].pack("NA*")
  end
end