Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 132 for Failure (0.23 sec)

  1. test/inline.go

    	if issue62211F(x) { // ERROR "inlining call to issue62211F"
    	}
    	if issue62211G(x) { // ERROR "inlining call to issue62211G"
    	}
    
    	// Initial fix CL caused a "non-monotonic scope positions" failure
    	// on code like this.
    	if z := 0; false {
    		panic(z)
    	}
    }
    
    func issue62211F(x bool) bool { // ERROR "can inline issue62211F"
    	if x || true {
    		return true
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.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/strings/example_test.go

    	// true
    }
    
    func ExampleContainsAny() {
    	fmt.Println(strings.ContainsAny("team", "i"))
    	fmt.Println(strings.ContainsAny("fail", "ui"))
    	fmt.Println(strings.ContainsAny("ure", "ui"))
    	fmt.Println(strings.ContainsAny("failure", "ui"))
    	fmt.Println(strings.ContainsAny("foo", ""))
    	fmt.Println(strings.ContainsAny("", ""))
    	// Output:
    	// false
    	// true
    	// true
    	// true
    	// false
    	// false
    }
    
    func ExampleContainsRune() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. 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)
  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/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)
  7. 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)
  8. 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)
  9. src/cmd/link/internal/ld/go.go

    // libc.so.96.1), while a dynamic import specifies an unversioned library (for
    // example, libc.so) - this would otherwise result in two DT_NEEDED entries
    // for the same library, resulting in a failure when ld.so attempts to load
    // the Go binary.
    func dedupLibrariesOpenBSD(ctxt *Link, libs []string) []string {
    	libraries := make(map[string]string)
    	for _, lib := range libs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. 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)
Back to top