Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 88 for Failure (0.13 sec)

  1. src/go/parser/resolver_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, fi := range fis {
    		t.Run(fi.Name(), func(t *testing.T) {
    			fset := token.NewFileSet()
    			path := filepath.Join(dir, fi.Name())
    			src := readFile(path) // panics on failure
    			var mode Mode
    			file, err := ParseFile(fset, path, src, mode)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			// Compare the positions of objects resolved during parsing (fromParser)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. src/runtime/mpagecache.go

    // point for allocation.
    //
    // Returns a base address and the amount of scavenged memory in the
    // allocated region in bytes.
    //
    // Returns a base address of zero on failure, in which case the
    // amount of scavenged memory should be ignored.
    func (c *pageCache) alloc(npages uintptr) (uintptr, uintptr) {
    	if c.cache == 0 {
    		return 0, 0
    	}
    	if npages == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/go/go_unix_test.go

    	cmd.Dir = tg.execDir
    
    	// Override $TMPDIR when running the tests: since we're terminating the tests
    	// with a signal they might fail to clean up some temp files, and we don't
    	// want that to cause an "unexpected files" failure at the end of the run.
    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. src/crypto/rsa/example_test.go

    	// we read the random key that will be used if the RSA decryption isn't
    	// well-formed.
    	key := make([]byte, 32)
    	if _, err := rand.Read(key); err != nil {
    		panic("RNG failure")
    	}
    
    	rsaCiphertext, _ := hex.DecodeString("aabbccddeeff")
    
    	if err := rsa.DecryptPKCS1v15SessionKey(nil, rsaPrivateKey, rsaCiphertext, key); err != nil {
    		// Any errors that result will be “public” – meaning that they
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. src/context/example_test.go

    	d := time.Now().Add(shortDuration)
    	ctx, cancel := context.WithDeadline(context.Background(), d)
    
    	// Even though ctx will be expired, it is good practice to call its
    	// cancellation function in any case. Failure to do so may keep the
    	// context and its parent alive longer than necessary.
    	defer cancel()
    
    	select {
    	case <-neverReady:
    		fmt.Println("ready")
    	case <-ctx.Done():
    		fmt.Println(ctx.Err())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:24:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    // the manuals for the appropriate operating system.
    //
    // These calls return err == nil to indicate success; otherwise
    // err represents an operating system error describing the failure and
    // holds a value of type syscall.Errno.
    package windows // import "golang.org/x/sys/windows"
    
    import (
    	"bytes"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    	files, err := ioutil.ReadDir(dir)
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    
    	if len(files) == 0 {
    		fmt.Fprintf(os.Stderr, "expect at least one failure to be written to testdata\n")
    		os.Exit(1)
    	}
    
    	for _, f := range files {
    		data, err := ioutil.ReadFile(filepath.Join(dir, f.Name()))
    		if err != nil {
    			panic(err)
    		}
    		var containsVal bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/conversions.go

    // is tricky because we'd have to run updateExprType on the argument first.
    // (go.dev/issue/21982.)
    
    // convertibleTo reports whether T(x) is valid. In the failure case, *cause
    // may be set to the cause for the failure.
    // The check parameter may be nil if convertibleTo is invoked through an
    // exported API call, i.e., when all methods have been type-checked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/mime/mediatype.go

    }
    
    // consumeToken consumes a token from the beginning of provided
    // string, per RFC 2045 section 5.1 (referenced from 2183), and return
    // the token consumed and the rest of the string. Returns ("", v) on
    // failure to consume at least one character.
    func consumeToken(v string) (token, rest string) {
    	notPos := strings.IndexFunc(v, isNotTokenChar)
    	if notPos == -1 {
    		return v, ""
    	}
    	if notPos == 0 {
    		return "", v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/cmd/link/dwarf_test.go

    					if err != nil {
    						t.Fatalf("symbols %v: %v: %s", filepath.Base(exe), err, out)
    					} else {
    						if bytes.HasPrefix(out, []byte("Unable to find file")) {
    							// This failure will cause the App Store to reject our binaries.
    							t.Fatalf("symbols %v: failed to parse file", filepath.Base(exe))
    						} else if bytes.Contains(out, []byte(", Empty]")) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top