module Net::SSH::Test::Extensions::PacketStream

def test_available_for_read?

Returns true if there is data pending to be read. Otherwise calls #idle!.
The testing version of Net::SSH::Transport::PacketStream#available_for_read?.
def test_available_for_read?
  return true if select_for_read?
  idle!
  false
end