- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 119 for goFiles (0.13 sec)
-
src/cmd/go/internal/load/pkg_test.go
pkg.ImportPath = tt.in pkg.GoFiles = tt.files pkg.Internal.CmdlineFiles = len(tt.files) > 0 gotMod := pkg.DefaultExecName() if gotMod != tt.wantMod { t.Errorf("pkg.DefaultExecName with ImportPath = %q in module mode = %v; want %v", tt.in, gotMod, tt.wantMod) } } { cfg.ModulesEnabled = false pkg := new(Package) pkg.ImportPath = tt.in pkg.GoFiles = tt.files
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 14:05:53 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/go/internal/vet/vet.go
if err != nil { base.Errorf("%v", err) continue } if len(ptest.GoFiles) == 0 && len(ptest.CgoFiles) == 0 && pxtest == nil { base.Errorf("go: can't vet %s: no Go files in %s", p.ImportPath, p.Dir) continue } if len(ptest.GoFiles) > 0 || len(ptest.CgoFiles) > 0 { root.Deps = append(root.Deps, b.VetAction(work.ModeBuild, work.ModeBuild, ptest)) } if pxtest != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_json_fields.txt
cmp stdout want-non-json.txt # Test -json=<field> keeps only that field. go list -json=Name cmp stdout want-json-name.txt # Test -json=<field> with multiple fields. go list -json=ImportPath,Name,GoFiles,Imports cmp stdout want-json-multiple.txt # Test -json=<field> with Deps outputs the Deps field. go list -json=Deps stdout '"Deps": \[' stdout '"errors",'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 15:24:16 UTC 2023 - 2.3K bytes - Viewed (0) -
src/go/build/build_test.go
t.Errorf("pkg.Name = %q; want %q", pkg.Name, wantName) } if wantGoFiles := []string{"file.go", "file_appengine.go"}; !reflect.DeepEqual(pkg.GoFiles, wantGoFiles) { t.Errorf("pkg.GoFiles = %q; want %q", pkg.GoFiles, wantGoFiles) } if wantInvalidFiles := []string{"file_appengine.go"}; !reflect.DeepEqual(pkg.InvalidGoFiles, wantInvalidFiles) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 16:24:01 UTC 2023 - 23.9K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
continue // Not covering this file. } if err := b.cover(a, coverFile, sourceFile, cover.Var); err != nil { return err } } if i < len(gofiles) { gofiles[i] = coverFile } else { cgofiles[i-len(gofiles)] = coverFile } } if cfg.Experiment.CoverageRedesign { if len(infiles) != 0 { // Coverage instrumentation creates new top level
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
ptest = new(Package) *ptest = *p ptest.Error = ptestErr ptest.Incomplete = incomplete ptest.ForTest = p.ImportPath ptest.GoFiles = nil ptest.GoFiles = append(ptest.GoFiles, p.GoFiles...) ptest.GoFiles = append(ptest.GoFiles, p.TestGoFiles...) ptest.Target = "" // Note: The preparation of the vet config requires that common // indexes in ptest.Imports and ptest.Internal.RawImports
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/cmd/go/internal/run/run.go
p.Target = "" // must build - not up to date if p.Internal.CmdlineFiles { //set executable name if go file is given as cmd-argument var src string if len(p.GoFiles) > 0 { src = p.GoFiles[0] } else if len(p.CgoFiles) > 0 { src = p.CgoFiles[0] } else { // this case could only happen if the provided source uses cgo // while cgo is disabled. hint := "" if !cfg.BuildContext.CgoEnabled {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/fmtcmd/fmt.go
// Skip this error, as we will format // all files regardless. } else { base.Errorf("%v", pkg.Error) continue } } // Use pkg.gofiles instead of pkg.Dir so that // the command only applies to this package, // not to packages in subdirectories. files := base.RelPaths(pkg.InternalAllGoFiles()) for _, file := range files {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
// same basename, so go from the overlay contents file path (passed to the compiler) // to the path the disk path would be rewritten to. cgoFiles := make(map[string]bool) for _, f := range a.Package.CgoFiles { cgoFiles[f] = true } // TODO(matloob): Higher up in the stack, when the logic for deciding when to make copies
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
Dir string // (unused) ImportPath string // package path GoVersion string // minimum required Go version, such as "go1.21.0" GoFiles []string NonGoFiles []string IgnoredFiles []string ImportMap map[string]string // maps import path to package path
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0)