Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for inPackage (0.15 sec)

  1. src/cmd/cover/cover_test.go

    	t.Parallel()
    
    	// srcPath is intentionally not clean so that the path passed to testcover
    	// will not normalize the trailing / to a \ on Windows.
    	srcPath := t.TempDir() + string(filepath.Separator) + "\npackage main\nfunc main() { panic(string([]rune{'u', 'h', '-', 'o', 'h'}))\n/*/main.go"
    	mainSrc := ` package main
    
    func main() {
    	/* nothing here */
    	println("ok")
    }
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. src/cmd/cover/cover.go

    	// we have instrumented functions.
    	if counterStmt == nil && len(p.counterLengths) != 0 {
    		panic("internal error: seen functions with regonly/testmain")
    	}
    
    	// Emit package name.
    	fmt.Fprintf(w, "\npackage %s\n\n", pkgconfig.PkgName)
    
    	// Emit package ID var.
    	fmt.Fprintf(w, "\nvar %sP uint32\n", *varVar)
    
    	// Emit all of the counter variables.
    	for k := range p.counterLengths {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	case *File:
    		file := n
    		seenRewrite := make(map[[3]string]string)
    		fmt.Fprintf(w, "// Code generated from _gen/%s%s.rules using 'go generate'; DO NOT EDIT.\n", n.Arch.name, n.Suffix)
    		fmt.Fprintf(w, "\npackage ssa\n")
    		for _, path := range append([]string{
    			"fmt",
    			"internal/buildcfg",
    			"math",
    			"cmd/internal/obj",
    			"cmd/compile/internal/base",
    			"cmd/compile/internal/types",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  4. src/cmd/internal/testdir/testdir_test.go

    	}
    	if action == "" {
    		t.Fatalf("execution recipe not found in GOROOT/test/%s", t.goFileName())
    	}
    
    	// Check for build constraints only up to the actual code.
    	header, _, ok := strings.Cut(src, "\npackage")
    	if !ok {
    		header = action // some files are intentionally malformed
    	}
    	if ok, why := shouldTest(header, goos, goarch); !ok {
    		t.Skip(why)
    	}
    
    	var args, flags, runenv []string
    	var tim int
    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