Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for InvalidGoFiles (0.1 sec)

  1. src/go/build/build_test.go

    		t.Errorf("pkg.GoFiles = %q; want %q", pkg.GoFiles, wantGoFiles)
    	}
    
    	if wantInvalidFiles := []string{"file_appengine.go"}; !reflect.DeepEqual(pkg.InvalidGoFiles, wantInvalidFiles) {
    		t.Errorf("pkg.InvalidGoFiles = %q; want %q", pkg.InvalidGoFiles, wantInvalidFiles)
    	}
    }
    
    func TestLocalDirectory(t *testing.T) {
    	if runtime.GOOS == "ios" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    	var badGoError error
    	badGoFiles := make(map[string]bool)
    	badGoFile := func(name string, err error) {
    		if badGoError == nil {
    			badGoError = err
    		}
    		if !badGoFiles[name] {
    			p.InvalidGoFiles = append(p.InvalidGoFiles, name)
    			badGoFiles[name] = true
    		}
    	}
    
    	var Sfiles []string // files with ".S"(capital S)/.sx(capital s equivalent for case insensitive filesystems)
    	var firstFile string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/search/search.go

    		// behavior means people miss serious mistakes.
    		// See golang.org/issue/11407.
    		if p, err := cfg.BuildContext.ImportDir(path, 0); err != nil && (p == nil || len(p.InvalidGoFiles) == 0) {
    			if _, noGo := err.(*build.NoGoError); noGo {
    				// The package does not actually exist, so record neither the package
    				// nor the error.
    				return nil
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top