Sha256: 456c134a2057ed21756930c127152e6e25a1b26580f94dd28ee3dee7dab21414
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
require "test_helper" require 'base64' class PackfileTest < Rugged::TestCase include Rugged::RepositoryAccess def test_packfile_object_exists assert @repo.exists?("41bc8c69075bbdb46c5c6f0566cc8cc5b46e8bd9") assert @repo.exists?("f82a8eb4cb20e88d1030fd10d89286215a715396") end def test_read_packed_object rawobj = @repo.read("41bc8c69075bbdb46c5c6f0566cc8cc5b46e8bd9") assert_match 'tree f82a8eb4cb20e88d1030fd10d89286215a715396', rawobj.data assert_equal 230, rawobj.len assert_equal :commit, rawobj.type end def test_read_packed_header hash = @repo.read_header("41bc8c69075bbdb46c5c6f0566cc8cc5b46e8bd9") assert_equal 230, hash[:len] assert_equal :commit, hash[:type] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.19.0 | test/repo_pack_test.rb |
rugged-0.18.0.gh.de28323 | test/repo_pack_test.rb |
rugged-0.18.0.b1 | test/repo_pack_test.rb |