Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for XTestGoFiles (0.26 sec)

  1. src/cmd/go/testdata/script/list_load_err.txt

    go list -e -f '{{range .GoFiles}}{{.}},{{end}}' ./constraint
    stdout '^good.go,$'
    go list -e -f '{{range .IgnoredGoFiles}}{{.}},{{end}}' ./constraint
    stdout '^constraint.go,$'
    
    [cgo] go list -e -f '{{range .XTestGoFiles}}{{.}},{{end}}' ./cgotest
    [cgo] stdout '^cgo_test.go,$'
    
    [cgo] go list -e -f '{{range .GoFiles}}{{.}},{{end}}' ./cgoflag
    [cgo] stdout '^cgoflag.go,$'
    
    -- go.mod --
    module m
    
    go 1.14
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/list/list.go

            DefaultGODEBUG string  // default GODEBUG setting, for main packages
    
            // Source files
            GoFiles           []string   // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
            CgoFiles          []string   // .go source files that import "C"
            CompiledGoFiles   []string   // .go files presented to compiler (when using -compiled)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/test.go

    	} else {
    		ptest = p
    	}
    
    	// External test package.
    	if len(p.XTestGoFiles) > 0 {
    		pxtest = &Package{
    			PackagePublic: PackagePublic{
    				Name:       p.Name + "_test",
    				ImportPath: p.ImportPath + "_test",
    				Root:       p.Root,
    				Dir:        p.Dir,
    				Goroot:     p.Goroot,
    				GoFiles:    p.XTestGoFiles,
    				Imports:    p.XTestImports,
    				ForTest:    p.ImportPath,
    				Module:     p.Module,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. src/go/types/gotype.go

    	ctxt := build.Default
    	pkginfo, err := ctxt.ImportDir(dir, 0)
    	if _, nogo := err.(*build.NoGoError); err != nil && !nogo {
    		return nil, err
    	}
    
    	if *xtestFiles {
    		return parseFiles(dir, pkginfo.XTestGoFiles)
    	}
    
    	filenames := append(pkginfo.GoFiles, pkginfo.CgoFiles...)
    	if *testFiles {
    		filenames = append(filenames, pkginfo.TestGoFiles...)
    	}
    	return parseFiles(dir, filenames)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. cmd/importverifier/importverifier.go

    	Imports      []string `yaml:",omitempty"` // import paths used by this package
    	TestImports  []string `yaml:",omitempty"` // imports from TestGoFiles
    	XTestImports []string `yaml:",omitempty"` // imports from XTestGoFiles
    }
    
    // ImportRestriction describes a set of allowable import
    // trees for a tree of source code
    type ImportRestriction struct {
    	// BaseDir is the root of a package tree that is restricted by this
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/go/internal/load/pkg.go

    	TestEmbedFiles     []string `json:",omitempty"` // files matched by TestEmbedPatterns
    	XTestGoFiles       []string `json:",omitempty"` // _test.go files outside package
    	XTestImports       []string `json:",omitempty"` // imports from XTestGoFiles
    	XTestEmbedPatterns []string `json:",omitempty"` // //go:embed patterns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  8. src/cmd/go/internal/clean/clean.go

    		// 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.
    	if p.Name == "main" {
    		allRemove = append(allRemove,
    			elem,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modindex/read.go

    				embedMap = embedPos
    				directives = &p.Directives
    			} else {
    				// Ignore Imports and Embeds from cgo files if cgo is disabled.
    				fileList = &p.IgnoredGoFiles
    			}
    		case isXTest:
    			fileList = &p.XTestGoFiles
    			importMap = xTestImportPos
    			embedMap = xTestEmbedPos
    			directives = &p.XTestDirectives
    		case isTest:
    			fileList = &p.TestGoFiles
    			importMap = testImportPos
    			embedMap = testEmbedPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    			// later package. Note that if -coverpkg is in effect
    			// p.Internal.Cover.GenMeta will wind up being set for
    			// all matching packages.
    			if len(p.TestGoFiles)+len(p.XTestGoFiles) == 0 &&
    				cfg.BuildCoverPkg == nil &&
    				cfg.Experiment.CoverageRedesign {
    				p.Internal.Cover.GenMeta = true
    			}
    		}
    	}
    
    	// Prepare build + run + print actions for all packages being tested.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top