Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newRule (0.45 sec)

  1. src/os/os_test.go

    	assertPathError(t, path, err)
    }
    
    // Use TempDir (via newFile) to make sure we're on a local file system,
    // so that timings are not distorted by latency and caching.
    // On NFS, timings can be off due to caching of meta-data on
    // NFS servers (Issue 848).
    func TestChtimes(t *testing.T) {
    	t.Parallel()
    
    	f := newFile("TestChtimes", t)
    	defer Remove(f.Name())
    
    	f.Write([]byte("hello, world\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	//
    	// It must be possible for importers to construct such invalid interfaces.
    	// Previously, this panicked.
    
    	sig1 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[Int])), nil, false)
    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. src/net/http/fs_test.go

    // for TestLinuxSendfile.
    func TestLinuxSendfileChild(*testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" {
    		return
    	}
    	defer os.Exit(0)
    	fd3 := os.NewFile(3, "ephemeral-port-listener")
    	ln, err := net.FileListener(fd3)
    	if err != nil {
    		panic(err)
    	}
    	mux := NewServeMux()
    	mux.Handle("/", FileServer(Dir(os.TempDir())))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewrite.go

    		OpPPC64SUB:      OpPPC64SUBCC,
    		OpPPC64NEG:      OpPPC64NEGCC,
    		OpPPC64NOR:      OpPPC64NORCC,
    		OpPPC64XOR:      OpPPC64XORCC,
    	}
    	b := op.Block
    	opCC := b.NewValue0I(op.Pos, ccOpMap[op.Op], types.NewTuple(op.Type, types.TypeFlags), op.AuxInt)
    	opCC.AddArgs(op.Args...)
    	op.reset(OpSelect0)
    	op.AddArgs(opCC)
    	return op
    }
    
    // Try converting a RLDICL to ANDCC. If successful, return the mask otherwise 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/lib.go

    		rewrittenOutput := *flagOutfile + "~"
    		exef, err := os.Open(*flagOutfile)
    		if err != nil {
    			Exitf("%s: %s failed: %v", os.Args[0], op, err)
    		}
    		defer exef.Close()
    		exem, err := macho.NewFile(exef)
    		if err != nil {
    			Exitf("%s: parsing Mach-O header failed: %v", os.Args[0], err)
    		}
    		if err := updateFunc(ctxt, exef, exem, rewrittenOutput); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top