Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PKGDEF (0.05 sec)

  1. src/cmd/internal/archive/archive.go

    		}
    		if err != nil {
    			return errCorruptArchive
    		}
    		data = data[60:]
    		fsize := size + size&1
    		if fsize < 0 || fsize < size {
    			return errCorruptArchive
    		}
    		switch name {
    		case "__.PKGDEF":
    			r.a.Entries = append(r.a.Entries, Entry{
    				Name:  name,
    				Type:  EntryPkgDef,
    				Mtime: mtime,
    				Uid:   uid,
    				Gid:   gid,
    				Mode:  mode,
    				Data:  Data{r.offset, size},
    			})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. src/cmd/pack/pack_test.go

    	out := run("./a.out")
    	if out != "hello world\n" {
    		t.Fatalf("incorrect output: %q, want %q", out, "hello world\n")
    	}
    }
    
    // Test that pack works with very long lines in PKGDEF.
    func TestLargeDefs(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in -short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    
    	dir := t.TempDir()
    	large := filepath.Join(dir, "large.go")
    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