Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 119 for goFiles (0.18 sec)

  1. src/go/internal/srcimporter/srcimporter.go

    		if p.packages[bp.ImportPath] == &importing {
    			p.packages[bp.ImportPath] = nil
    		}
    	}()
    
    	var filenames []string
    	filenames = append(filenames, bp.GoFiles...)
    	filenames = append(filenames, bp.CgoFiles...)
    
    	files, err := p.parseFiles(bp.Dir, filenames)
    	if err != nil {
    		return nil, err
    	}
    
    	// type-check package files
    	var firstHardErr error
    	conf := types.Config{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/gcimporter_test.go

    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	// Get list of packages in stdlib. Filter out test-only packages with {{if .GoFiles}} check.
    	var stderr bytes.Buffer
    	cmd := exec.Command("go", "list", "-f", "{{if .GoFiles}}{{.ImportPath}}{{end}}", "std")
    	cmd.Stderr = &stderr
    	out, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/clean/clean.go

    		// Record which files are not in package main.
    		// The others are.
    		keep := func(list []string) {
    			for _, f := range list {
    				packageFile[f] = true
    			}
    		}
    		keep(p.GoFiles)
    		keep(p.CgoFiles)
    		keep(p.TestGoFiles)
    		keep(p.XTestGoFiles)
    	}
    
    	_, elem := filepath.Split(p.Dir)
    	var allRemove []string
    
    	// Remove dir-named executable only if this is package main.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. cmd/import-boss/main_test.go

    		}
    	}
    }
    
    func TestPackageDir(t *testing.T) {
    	cases := []struct {
    		input  *packages.Package
    		expect string
    	}{{
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    			GoFiles:      []string{"/src/prj/file.go"},
    			IgnoredFiles: []string{"/otherdir/file.go"},
    		},
    		expect: filepath.Clean("/src/prj"),
    	}, {
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/go/build/build.go

    	BinaryOnly    bool     // cannot be rebuilt from source (has //go:binary-only-package comment)
    
    	// Source files
    	GoFiles           []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
    	CgoFiles          []string // .go source files that import "C"
    	IgnoredGoFiles    []string // .go source files ignored for this build (including ignored _test.go files)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modindex/read.go

    	}
    	sort.Strings(p.AllTags)
    
    	if len(p.CgoFiles) > 0 {
    		p.SFiles = append(p.SFiles, Sfiles...)
    		sort.Strings(p.SFiles)
    	} else {
    		p.IgnoredOtherFiles = append(p.IgnoredOtherFiles, Sfiles...)
    		sort.Strings(p.IgnoredOtherFiles)
    	}
    
    	if badGoError != nil {
    		return p, badGoError
    	}
    	if len(p.GoFiles)+len(p.CgoFiles)+len(p.TestGoFiles)+len(p.XTestGoFiles) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. src/cmd/doc/pkg.go

    	// That means the file must be in the build package's GoFiles or CgoFiles
    	// list only (no tag-ignored files, tests, swig or other non-Go files).
    	include := func(info fs.FileInfo) bool {
    		for _, name := range pkg.GoFiles {
    			if name == info.Name() {
    				return true
    			}
    		}
    		for _, name := range pkg.CgoFiles {
    			if name == info.Name() {
    				return true
    			}
    		}
    		return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  8. src/go/types/stdlib_test.go

    			return nil, nil // no *.go files, not an error
    		}
    		return nil, err
    	}
    	if excluded[pkg.ImportPath] {
    		return nil, nil
    	}
    	var filenames []string
    	for _, name := range pkg.GoFiles {
    		filenames = append(filenames, filepath.Join(pkg.Dir, name))
    	}
    	if includeTest {
    		for _, name := range pkg.TestGoFiles {
    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/stdlib_test.go

    			return nil, nil // no *.go files, not an error
    		}
    		return nil, err
    	}
    	if excluded[pkg.ImportPath] {
    		return nil, nil
    	}
    	var filenames []string
    	for _, name := range pkg.GoFiles {
    		filenames = append(filenames, filepath.Join(pkg.Dir, name))
    	}
    	if includeTest {
    		for _, name := range pkg.TestGoFiles {
    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    			t.Skipf("skipping: GOROOT/test not present")
    		}
    	}
    
    	for _, dir := range dirs {
    		for _, goFile := range goFiles(t, dir) {
    			test := test{testCommon: common, dir: dir, goFile: goFile}
    			t.Run(path.Join(dir, goFile), func(t *testing.T) {
    				t.Parallel()
    				test.T = t
    				testError := test.run()
    				wantError := test.expectFail() && !*force
    				if testError != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top