Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 132 for Failure (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/go/types/issues_test.go

    		mast := mustParse(fset, main)
    		conf := Config{Importer: importHelper{pkg: bpkg}}
    		_, err := conf.Check(mast.Name.Name, fset, []*ast.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)
  6. src/go/types/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.9K bytes
    - Viewed (0)
  7. src/runtime/race.go

    				// take an outermost wrapper over nothing.
    				continue
    			}
    
    			name := sf.name()
    			file, line := u.fileLine(uf)
    			if line == 0 {
    				// Failure to symbolize
    				continue
    			}
    			ctx.fn = &bytes(name)[0] // assume NUL-terminated
    			ctx.line = uintptr(line)
    			ctx.file = &bytes(file)[0] // assume NUL-terminated
    			ctx.off = pc - fi.entry()
    			ctx.res = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcarchive/carchive_test.go

    		t.Log(s)
    	}
    	wg.Wait()
    	s = errsb.String()
    	if len(s) > 0 {
    		t.Log(s)
    	}
    
    	return err
    }
    
    // expectSignal checks that err, the exit status of a test program,
    // shows a failure due to a specific signal or two. Returns whether we
    // found an expected signal.
    func expectSignal(t *testing.T, err error, sig1, sig2 syscall.Signal) bool {
    	t.Helper()
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/staticinit/sched.go

    			// both words are zero and so there no work to do, so report success.
    			// If val is non-nil, we have no concrete type to record,
    			// and we won't be able to statically initialize its value, so report failure.
    			return val.Op() == ir.ONIL
    		}
    
    		if val.Type().HasShape() {
    			// See comment in cmd/compile/internal/walk/convert.go:walkConvInterface
    			return false
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/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.1K bytes
    - Viewed (0)
Back to top