Sha256: 90996035579e0c8bcb0d26a1cd67c784c812b7130893a502b122837e6e0cf933

Contents?: true

Size: 281 Bytes

Versions: 145

Compression:

Stored size: 281 Bytes

Contents

require 'common'

class PacketTest < Net::SFTP::TestCase
  def test_packet_should_auto_read_type_byte
    packet = Net::SFTP::Packet.new("\001rest-of-packet-here")
    assert_equal 1, packet.type
    assert_equal "rest-of-packet-here", packet.content[packet.position..-1]
  end
end

Version data entries

145 entries across 108 versions & 9 rubygems

Version Path
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/net-sftp-2.1.2/test/test_packet.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/net-sftp-2.1.2/test/test_packet.rb