Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 885 for panicIP (0.28 sec)

  1. src/runtime/panic_test.go

    		{"panicCustomFloat32", `panic: main.MyFloat32(-9.370000e+001)`},
    		{"panicCustomFloat64", `panic: main.MyFloat64(-9.370000e+001)`},
    		{"panicCustomInt", `panic: main.MyInt(93)`},
    		{"panicCustomInt8", `panic: main.MyInt8(93)`},
    		{"panicCustomInt16", `panic: main.MyInt16(93)`},
    		{"panicCustomInt32", `panic: main.MyInt32(93)`},
    		{"panicCustomInt64", `panic: main.MyInt64(93)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. src/internal/reflectlite/export_test.go

    import (
    	"unsafe"
    )
    
    // Field returns the i'th field of the struct v.
    // It panics if v's Kind is not Struct or i is out of range.
    func Field(v Value, i int) Value {
    	if v.kind() != Struct {
    		panic(&ValueError{"reflect.Value.Field", v.kind()})
    	}
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	if uint(i) >= uint(len(tt.Fields)) {
    		panic("reflect: Field index out of range")
    	}
    	field := &tt.Fields[i]
    	typ := field.Typ
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/math/rand/v2/rand.go

    // It panics if n <= 0.
    func (r *Rand) Int64N(n int64) int64 {
    	if n <= 0 {
    		panic("invalid argument to Int64N")
    	}
    	return int64(r.uint64n(uint64(n)))
    }
    
    // Uint64N returns, as a uint64, a non-negative pseudo-random number in the half-open interval [0,n).
    // It panics if n == 0.
    func (r *Rand) Uint64N(n uint64) uint64 {
    	if n == 0 {
    		panic("invalid argument to Uint64N")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. src/crypto/internal/boring/boring.go

    func init() {
    	C._goboringcrypto_BORINGSSL_bcm_power_on_self_test()
    	if C._goboringcrypto_FIPS_mode() != 1 {
    		panic("boringcrypto: not in FIPS mode")
    	}
    	sig.BoringCrypto()
    }
    
    // Unreachable marks code that should be unreachable
    // when BoringCrypto is in use. It panics.
    func Unreachable() {
    	panic("boringcrypto: invalid code execution")
    }
    
    // provided by runtime to avoid os import.
    func runtime_arg0() string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/routine.go

    			handler.ServeHTTP(w, req)
    			return
    		}
    
    		req = req.WithContext(WithTask(ctx, &Task{}))
    		panicCh := make(chan any, 1)
    		go func() {
    			defer func() {
    				if r := recover(); r != nil {
    					panicCh <- r
    				}
    				close(panicCh)
    			}()
    			handler.ServeHTTP(w, req)
    		}()
    
    		if p, ok := <-panicCh; ok {
    			panic(p)
    		}
    
    		ctx = req.Context()
    		if t := TaskFrom(ctx); t != nil && t.Func != nil {
    			t.Func()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/sync/atomic/value.go

    // Store sets the value of the [Value] v to val.
    // All calls to Store for a given Value must use values of the same concrete type.
    // Store of an inconsistent type panics, as does Store(nil).
    func (v *Value) Store(val any) {
    	if val == nil {
    		panic("sync/atomic: store of nil value into Value")
    	}
    	vp := (*efaceWords)(unsafe.Pointer(v))
    	vlp := (*efaceWords)(unsafe.Pointer(&val))
    	for {
    		typ := LoadPointer(&vp.typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/slices/sort_test.go

    	emptySlice := []int{}
    
    	if !panics(func() { Min(emptySlice) }) {
    		t.Errorf("Min([]): got no panic, want panic")
    	}
    
    	if !panics(func() { Max(emptySlice) }) {
    		t.Errorf("Max([]): got no panic, want panic")
    	}
    
    	if !panics(func() { MinFunc(emptySlice, intCmp) }) {
    		t.Errorf("MinFunc([]): got no panic, want panic")
    	}
    
    	if !panics(func() { MaxFunc(emptySlice, intCmp) }) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. src/internal/reflectlite/swapper.go

    // slice.
    //
    // Swapper panics if the provided interface is not a slice.
    func Swapper(slice any) func(i, j int) {
    	v := ValueOf(slice)
    	if v.Kind() != Slice {
    		panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
    	}
    	// Fast path for slices of size 0 and 1. Nothing to swap.
    	switch v.Len() {
    	case 0:
    		return func(i, j int) { panic("reflect: slice index out of range") }
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. src/reflect/swapper.go

    // slice.
    //
    // Swapper panics if the provided interface is not a slice.
    func Swapper(slice any) func(i, j int) {
    	v := ValueOf(slice)
    	if v.Kind() != Slice {
    		panic(&ValueError{Method: "Swapper", Kind: v.Kind()})
    	}
    	// Fast path for slices of size 0 and 1. Nothing to swap.
    	switch v.Len() {
    	case 0:
    		return func(i, j int) { panic("reflect: slice index out of range") }
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/reflect/type.go

    	//	t.IsVariadic() == true
    	//
    	// IsVariadic panics if the type's Kind is not Func.
    	IsVariadic() bool
    
    	// Elem returns a type's element type.
    	// It panics if the type's Kind is not Array, Chan, Map, Pointer, or Slice.
    	Elem() Type
    
    	// Field returns a struct type's i'th field.
    	// It panics if the type's Kind is not Struct.
    	// It panics if i is not in the range [0, NumField()).
    	Field(i int) StructField
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top