Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 122 for Failure (0.22 sec)

  1. src/cmd/go/internal/work/shell.go

    var cgoTypeSigRe = lazyregexp.New(`\b_C2?(type|func|var|macro)_\B`)
    
    // run runs the command given by cmdline in the directory dir.
    // If the command fails, run prints information about the failure
    // and returns a non-nil error.
    func (sh *Shell) run(dir string, desc string, env []string, cmdargs ...any) error {
    	out, err := sh.runOut(dir, env, cmdargs...)
    	if desc == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. src/crypto/ecdsa/ecdsa.go

    //
    // Signatures generated by this package are not deterministic, but entropy is
    // mixed with the private key and the message, achieving the same level of
    // security in case of randomness source failure.
    //
    // Operations involving private keys are implemented using constant-time
    // algorithms, as long as an [elliptic.Curve] returned by [elliptic.P224],
    // [elliptic.P256], [elliptic.P384], or [elliptic.P521] is used.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. src/runtime/crash_cgo_test.go

    	if runtime.GOOS == "plan9" {
    		t.Skipf("no pthreads on %s", runtime.GOOS)
    	}
    	got := runTestProg(t, "testprogcgo", "CgoExternalThreadPanic")
    	want := "panic: BOOM"
    	if !strings.Contains(got, want) {
    		t.Fatalf("want failure containing %q. output:\n%s\n", want, got)
    	}
    }
    
    func TestCgoExternalThreadSIGPROF(t *testing.T) {
    	t.Parallel()
    	// issue 9456.
    	switch runtime.GOOS {
    	case "plan9", "windows":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    	{"012abcba210", "\xffb", 6},
    	{"012\x80bcb\x80210", "\xffb", 7},
    	{"0123456\xcf\x80abc", "\xcfb\x80", 10},
    }
    
    // Execute f on each test case.  funcName should be the name of f; it's used
    // in failure reports.
    func runIndexTests(t *testing.T, f func(s, sep []byte) int, funcName string, testCases []BinOpTest) {
    	for _, test := range testCases {
    		a := []byte(test.a)
    		b := []byte(test.b)
    		actual := f(a, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/go/types/builtins.go

    			check.errorf(x, Test, "internal error: value of %s should be a boolean constant", x)
    			return
    		}
    		if !constant.BoolVal(x.val) {
    			check.errorf(call, Test, "%v failed", call)
    			// compile-time assertion failure - safe to continue
    		}
    		// result is constant - no need to record signature
    
    	case _Trace:
    		// trace(x, y, z, ...) dumps the positions, expressions, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/issues_test.go

    		mast := mustParse(main)
    		conf := Config{Importer: importHelper{pkg: bpkg}}
    		_, err := conf.Check(mast.PkgName.Value, []*syntax.File{mast}, nil)
    		if err == nil {
    			t.Error("Expected failure, but it did not")
    		} else if got := err.Error(); !re.MatchString(got) {
    			t.Errorf("Wanted match for\n\t%s\n but got\n\t%s", want, got)
    		} else if testing.Verbose() {
    			t.Logf("Saw expected\n\t%s", err.Error())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/unify.go

    	unificationDepthLimit = 50
    
    	// Whether to panic when unificationDepthLimit is reached.
    	// If disabled, a recursion depth overflow results in a (quiet)
    	// unification failure.
    	panicAtUnificationDepthLimit = true
    
    	// If enableCoreTypeUnification is set, unification will consider
    	// the core types, if any, of non-local (unbound) type parameters.
    	enableCoreTypeUnification = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_client.go

    	if err != nil {
    		return err
    	}
    	if session != nil {
    		defer func() {
    			// If we got a handshake failure when resuming a session, throw away
    			// the session ticket. See RFC 5077, Section 3.2.
    			//
    			// RFC 8446 makes no mention of dropping tickets on failure, but it
    			// does require servers to abort on invalid binders, so we need to
    			// delete tickets to recover from a corrupted PSK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  9. src/net/netip/netip.go

    	ip, err := ParseAddr(s)
    	if err != nil {
    		panic(err)
    	}
    	return ip
    }
    
    type parseAddrError struct {
    	in  string // the string given to ParseAddr
    	msg string // an explanation of the parse failure
    	at  string // optionally, the unparsed portion of in at which the error occurred.
    }
    
    func (err parseAddrError) Error() string {
    	q := strconv.Quote
    	if err.at != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  10. src/strings/strings_test.go

    	{"012abcba210", "\xffb", 6},
    	{"012\x80bcb\x80210", "\xffb", 7},
    	{"0123456\xcf\x80abc", "\xcfb\x80", 10},
    }
    
    // Execute f on each test case.  funcName should be the name of f; it's used
    // in failure reports.
    func runIndexTests(t *testing.T, f func(s, sep string) int, funcName string, testCases []IndexTest) {
    	for _, test := range testCases {
    		actual := f(test.s, test.sep)
    		if actual != test.out {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top