Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 884 for panicIP (0.14 sec)

  1. src/net/netip/netip_test.go

    )
    
    func TestNoAllocs(t *testing.T) {
    	// Wrappers that panic on error, to prove that our alloc-free
    	// methods are returning successfully.
    	panicIP := func(ip Addr, err error) Addr {
    		if err != nil {
    			panic(err)
    		}
    		return ip
    	}
    	panicPfx := func(pfx Prefix, err error) Prefix {
    		if err != nil {
    			panic(err)
    		}
    		return pfx
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  2. src/runtime/panic.go

    // This is used to try hard to get a panic stack trace out when exiting.
    var runningPanicDefers atomic.Uint32
    
    // panicking is non-zero when crashing the program for an unrecovered panic.
    var panicking atomic.Uint32
    
    // paniclk is held while printing the panic information and stack trace,
    // so that two concurrent panics don't overlap their output.
    var paniclk mutex
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    func WithPanicRecovery(handler http.Handler, resolver request.RequestInfoResolver) http.Handler {
    	return withPanicRecovery(handler, func(w http.ResponseWriter, req *http.Request, err interface{}) {
    		if err == http.ErrAbortHandler {
    			// Honor the http.ErrAbortHandler sentinel panic value
    			//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/fmt/fmt_test.go

    		}
    	}
    }
    
    // PanicS is a type that panics in String.
    type PanicS struct {
    	message any
    }
    
    // Value receiver.
    func (p PanicS) String() string {
    	panic(p.message)
    }
    
    // PanicGo is a type that panics in GoString.
    type PanicGo struct {
    	message any
    }
    
    // Value receiver.
    func (p PanicGo) GoString() string {
    	panic(p.message)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	return r.count
    }
    
    func newHandler(responseCh <-chan string, panicCh <-chan interface{}, writeErrCh chan<- error) http.HandlerFunc {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		select {
    		case resp := <-responseCh:
    			_, err := w.Write([]byte(resp))
    			writeErrCh <- err
    		case panicReason := <-panicCh:
    			panic(panicReason)
    		}
    	})
    }
    
    func TestTimeout(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. src/syscall/js/js.go

    // It panics if v is not a JavaScript number.
    func (v Value) Int() int {
    	return int(v.float("Value.Int"))
    }
    
    // Bool returns the value v as a bool.
    // It panics if v is not a JavaScript boolean.
    func (v Value) Bool() bool {
    	switch v.ref {
    	case valueTrue.ref:
    		return true
    	case valueFalse.ref:
    		return false
    	default:
    		panic(&ValueError{"Value.Bool", v.Type()})
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  7. src/iter/iter.go

    		yield := func(v1 V) bool {
    			if done {
    				return false
    			}
    			if !yieldNext {
    				panic("iter.Pull: yield called again before next")
    			}
    			yieldNext = false
    			v, ok = v1, true
    			race.Release(unsafe.Pointer(&racer))
    			coroswitch(c)
    			race.Acquire(unsafe.Pointer(&racer))
    			return !done
    		}
    		// Recover and propagate panics from seq.
    		defer func() {
    			if p := recover(); p != nil {
    				panicValue = p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. src/reflect/value.go

    	if f == 0 {
    		panic(&ValueError{valueMethodName(), Invalid})
    	}
    	// Assignable if addressable and not read-only.
    	if f&flagRO != 0 {
    		panic("reflect: " + valueMethodName() + " using value obtained using unexported field")
    	}
    	if f&flagAddr == 0 {
    		panic("reflect: " + valueMethodName() + " using unaddressable value")
    	}
    }
    
    // Addr returns a pointer value representing the address of v.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  9. src/internal/reflectlite/value.go

    	}
    	return f.Name()
    }
    
    // mustBeExported panics if f records that the value was obtained using
    // an unexported field.
    func (f flag) mustBeExported() {
    	if f == 0 {
    		panic(&ValueError{methodName(), 0})
    	}
    	if f&flagRO != 0 {
    		panic("reflect: " + methodName() + " using value obtained using unexported field")
    	}
    }
    
    // mustBeAssignable panics if f records that the value is not assignable,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/log/slog/value.go

    }
    
    // Int64 returns v's value as an int64. It panics
    // if v is not a signed integer.
    func (v Value) Int64() int64 {
    	if g, w := v.Kind(), KindInt64; g != w {
    		panic(fmt.Sprintf("Value kind is %s, not %s", g, w))
    	}
    	return int64(v.num)
    }
    
    // Uint64 returns v's value as a uint64. It panics
    // if v is not an unsigned integer.
    func (v Value) Uint64() uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top