Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for dir (0.11 sec)

  1. src/cmd/api/api_test.go

    		t.Skip("skipping with -check set")
    	}
    	testenv.MustHaveGoBuild(t)
    	context := new(build.Context)
    	*context = build.Default
    	context.Dir = filepath.Join(testenv.GOROOT(t), "src")
    
    	w := NewWalker(context, context.Dir)
    	for _, pkg := range w.stdPackages {
    		if strings.HasPrefix(pkg, "vendor/") || strings.HasPrefix(pkg, "golang.org/x/") {
    			t.Fatalf("stdPackages contains unexpected package %s", pkg)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    func TestFSWalk(t *testing.T) {
    	for _, test := range []struct {
    		file    string
    		want    []string
    		wantErr bool
    	}{
    		{
    			file: "testdata/unix.zip",
    			want: []string{".", "dir", "dir/bar", "dir/empty", "hello", "readonly"},
    		},
    		{
    			file: "testdata/subdir.zip",
    			want: []string{".", "a", "a/b", "a/b/c"},
    		},
    		{
    			file:    "testdata/dupdir.zip",
    			wantErr: true,
    		},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. misc/wasm/go_wasip1_wasm_exec

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    case "$GOWASIRUNTIME" in
    	"wasmedge")
    		exec wasmedge --dir=/ --env PWD="$PWD" --env PATH="$PATH" ${GOWASIRUNTIMEARGS:-} "$1" "${@:2}"
    		;;
    	"wasmer")
    		exec wasmer run --dir=/ --env PWD="$PWD" --env PATH="$PATH" ${GOWASIRUNTIMEARGS:-} "$1" -- "${@:2}"
    		;;
    	"wazero")
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 17:09:10 GMT 2024
    - 797 bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    	if usePkgCache {
    		if tags, ok := pkgTags[dir]; ok {
    			key = tagKey(dir, context, tags)
    			if pkg := pkgCache[key]; pkg != nil {
    				w.imported[name] = pkg
    				return pkg, nil
    			}
    		}
    	}
    
    	info, err := context.ImportDir(dir, 0)
    	if err != nil {
    		if _, nogo := err.(*build.NoGoError); nogo {
    			return nil, err
    		}
    		log.Fatalf("pkg %q, dir %q: ScanDir: %v", name, dir, err)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. src/archive/zip/writer.go

    // CreateHeader and CreateRaw.
    func (w *Writer) prepare(fh *FileHeader) error {
    	if w.last != nil && !w.last.closed {
    		if err := w.last.close(); err != nil {
    			return err
    		}
    	}
    	if len(w.dir) > 0 && w.dir[len(w.dir)-1].FileHeader == fh {
    		// See https://golang.org/issue/11144 confusion.
    		return errors.New("archive/zip: invalid duplicate FileHeader")
    	}
    	return nil
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    			testClose{nil},
    		},
    	}, {
    		// Automatically promote zero value of Typeflag depending on the name.
    		file: "testdata/file-and-dir.tar",
    		tests: []testFnc{
    			testHeader{Header{Name: "small.txt", Size: 5}, nil},
    			testWrite{"Kilts", 5, nil},
    			testHeader{Header{Name: "dir/"}, nil},
    			testClose{nil},
    		},
    	}}
    
    	equalError := func(x, y error) bool {
    		_, ok1 := x.(headerError)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  7. src/archive/tar/tar_test.go

    			Mode:     0660,
    			Size:     0,
    			ModTime:  time.Unix(1360578954, 0),
    			Typeflag: TypeBlock,
    		},
    		fm: 0660 | fs.ModeDevice,
    	}, {
    		// directory.
    		h: &Header{
    			Name:     "dir/",
    			Mode:     0755,
    			Size:     0,
    			ModTime:  time.Unix(1360601116, 0),
    			Typeflag: TypeDir,
    		},
    		fm: 0755 | fs.ModeDir,
    	}, {
    		// fifo node.
    		h: &Header{
    			Name:     "dev/initctl",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/testdata/arm64error.s

    	MSR	R6, RNDR                                         // ERROR "system register is not writable"
    	MRS	DBGDTRTX_EL0, R5                                 // ERROR "system register is not readable"
    	MRS	ICV_DIR_EL1, R5                                  // ERROR "system register is not readable"
    	MRS	ICC_SGI1R_EL1, R5                                // ERROR "system register is not readable"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 37.8K bytes
    - Viewed (0)
Back to top