Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for Failure (0.41 sec)

  1. src/cmd/vendor/golang.org/x/text/cases/map.go

    	c := &t.context
    
    	if !c.next() {
    		return c.ret()
    	}
    
    	for {
    		p := c.info
    		if t.rewrite != nil {
    			t.rewrite(c)
    		}
    
    		wasMid := p.isMid()
    		// Break out of this loop on failure to ensure we do not modify the
    		// state incorrectly.
    		if p.isCased() {
    			if !c.isMidWord {
    				if !t.title(c) {
    					break
    				}
    				c.isMidWord = true
    			} else if !t.lower(c) {
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. src/crypto/rsa/rsa.go

    		return boring.EncryptRSANoPadding(bkey, em)
    	}
    
    	return encrypt(pub, em)
    }
    
    // ErrDecryption represents a failure to decrypt a message.
    // It is deliberately vague to avoid adaptive attacks.
    var ErrDecryption = errors.New("crypto/rsa: decryption error")
    
    // ErrVerification represents a failure to verify a signature.
    // It is deliberately vague to avoid adaptive attacks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. src/time/sleep_test.go

    	})
    }
    
    func testAfterQueuing(t *testing.T, after func(Duration) <-chan Time) {
    	// This test flakes out on some systems,
    	// so we'll try it a few times before declaring it a failure.
    	const attempts = 5
    	err := errors.New("!=nil")
    	for i := 0; i < attempts && err != nil; i++ {
    		delta := Duration(20+i*50) * Millisecond
    		if err = testAfterQueuing1(delta, after); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. src/runtime/crash_test.go

    	if os.Getenv("GO_TEST_RUNTIME_PANIC") == "1" {
    		defer func() {
    			if r := recover(); r != nil {
    				// We expect to crash, so exit 0
    				// to indicate failure.
    				os.Exit(0)
    			}
    		}()
    		runtime.PanicForTesting(nil, 1)
    		// We expect to crash, so exit 0 to indicate failure.
    		os.Exit(0)
    	}
    	if os.Getenv("GO_TEST_RUNTIME_NPE_READMEMSTATS") == "1" {
    		runtime.ReadMemStats(nil)
    		os.Exit(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. src/go/types/index.go

    		x.mode = mapindex
    		x.typ = typ.elem
    		x.expr = e.Orig
    		return false
    
    	case *Interface:
    		if !isTypeParam(x.typ) {
    			break
    		}
    		// TODO(gri) report detailed failure cause for better error messages
    		var key, elem Type // key != nil: we must have all maps
    		mode := variable   // non-maps result mode
    		// TODO(gri) factor out closure and use it for non-typeparam cases as well
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/runtime/mpagealloc.go

    // This candidate is always a valid p.searchAddr.
    //
    // find represents the slow path and the full radix tree search.
    //
    // Returns a base address of 0 on failure, in which case the candidate
    // searchAddr returned is invalid and must be ignored.
    //
    // p.mheapLock must be held.
    func (p *pageAlloc) find(npages uintptr) (uintptr, offAddr) {
    	assertLockHeld(p.mheapLock)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  7. src/cmd/dist/buildtool.go

    	// We use a subdirectory of $GOROOT/pkg because that's the
    	// space within $GOROOT where we store all generated objects.
    	// We could use a temporary directory outside $GOROOT instead,
    	// but it is easier to debug on failure if the files are in a known location.
    	workspace := pathf("%s/pkg/bootstrap", goroot)
    	xremoveall(workspace)
    	xatexit(func() { xremoveall(workspace) })
    	base := pathf("%s/src/bootstrap", workspace)
    	xmkdirall(base)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/infer.go

    			}
    		}
    		smap := makeSubstMap(tparams, targs)
    		// TODO(gri): pass a poser here, rather than arg.Pos().
    		inferred := check.subst(arg.Pos(), tpar, smap, nil, check.context())
    		// CannotInferTypeArgs indicates a failure of inference, though the actual
    		// error may be better attributed to a user-provided type argument (hence
    		// InvalidTypeArg). We can't differentiate these cases, so fall back on
    		// the more general CannotInferTypeArgs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  9. src/go/types/infer.go

    			}
    		}
    		smap := makeSubstMap(tparams, targs)
    		// TODO(gri): pass a poser here, rather than arg.Pos().
    		inferred := check.subst(arg.Pos(), tpar, smap, nil, check.context())
    		// CannotInferTypeArgs indicates a failure of inference, though the actual
    		// error may be better attributed to a user-provided type argument (hence
    		// InvalidTypeArg). We can't differentiate these cases, so fall back on
    		// the more general CannotInferTypeArgs.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_test.go

    // implementation will always generate fresh random numbers, large parts of the
    // reference connection will always change.
    
    var (
    	update       = flag.Bool("update", false, "update golden files on failure")
    	fast         = flag.Bool("fast", false, "impose a quick, possibly flaky timeout on recorded tests")
    	keyFile      = flag.String("keylog", "", "destination file for KeyLogWriter")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top