module Net::SSH::Test::Extensions::BufferedIo

def select_for_read?

length of the stream.
Returns +true+ if the position in the stream is less than the total
def select_for_read?
  pos < size
end