Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTableOfContents (0.39 sec)

  1. src/cmd/pack/pack_test.go

    	dir := t.TempDir()
    	testCreate(t, dir)
    	testCreate(t, dir)
    }
    
    // Test that we can create an archive, put some files in it, and get back a correct listing.
    // Tests the tv command.
    func TestTableOfContents(t *testing.T) {
    	dir := t.TempDir()
    	name := filepath.Join(dir, "pack.a")
    	ar := openArchive(name, os.O_RDWR|os.O_CREATE, nil)
    
    	// Add some entries by hand.
    	ar.addFile(helloFile.Reset())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:27:35 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top