Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for mypanic (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    func (t *testRESTStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	metaObj, err := meta.Accessor(obj)
    	if err != nil {
    		panic(err.Error())
    	}
    	labels := metaObj.GetLabels()
    	if labels == nil {
    		labels = map[string]string{}
    	}
    	labels["prepare_create"] = "true"
    	metaObj.SetLabels(labels)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    				MaxEjectionPercent: 105,
    			},
    			valid: false,
    		},
    		{
    			name: "invalid outlier detection, panic threshold too low", in: &networking.OutlierDetection{
    				MinHealthPercent: -1,
    			},
    			valid: false,
    		},
    		{
    			name: "invalid outlier detection, panic threshold too high", in: &networking.OutlierDetection{
    				MinHealthPercent: 101,
    			},
    			valid: false,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/AMD64Ops.go

    	if len(regNamesAMD64) > 64 {
    		panic("too many registers")
    	}
    	num := map[string]int{}
    	for i, name := range regNamesAMD64 {
    		num[name] = i
    	}
    	buildReg := func(s string) regMask {
    		m := regMask(0)
    		for _, r := range strings.Split(s, " ") {
    			if n, ok := num[r]; ok {
    				m |= regMask(1) << uint(n)
    				continue
    			}
    			panic("register " + r + " not found")
    		}
    		return m
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 98K bytes
    - Viewed (1)
  4. src/cmd/internal/obj/arm64/asm7.go

    	}
    	lo := (v >> shift) & 0xfff
    	hi := v - (lo << shift)
    	if hi > 0xfff000 {
    		hi = 0xfff000
    		lo = (v - hi) >> shift
    	}
    	if hi & ^0xfff000 != 0 {
    		panic(fmt.Sprintf("bad split for %x with shift %v (%x, %x)", v, shift, hi, lo))
    	}
    	return hi, lo, nil
    }
    
    func (c *ctxt7) regoff(a *obj.Addr) int32 {
    	c.instoffset = 0
    	c.aclass(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  5. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			name:     "preCheck isn't called if the event is not interested by any plugins",
    			podInfos: podInfos,
    			event:    PvAdd, // No plugin is interested in this event.
    			preEnqueueCheck: func(pod *v1.Pod) bool {
    				panic("preCheck shouldn't be called")
    			},
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			logger, ctx := ktesting.NewTestContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/policy_static_test.go

    	s.SetMemoryAssignments(testCase.assignments)
    	return p, s, nil
    }
    
    func newNUMAAffinity(bits ...int) bitmask.BitMask {
    	affinity, err := bitmask.NewBitMask(bits...)
    	if err != nil {
    		panic(err)
    	}
    	return affinity
    }
    
    func TestStaticPolicyNew(t *testing.T) {
    	testCases := []testStaticPolicy{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
  7. pkg/printers/internalversion/printers_test.go

    						buf := make([]byte, size)
    						buf = buf[:runtime.Stack(buf, false)]
    						err = fmt.Errorf("%q stack:\n%s", err, buf)
    
    						t.Errorf("Expected no panic, but got: %v", err)
    					}
    				}()
    
    				// should not panic
    				rows[0].DeepCopy()
    			}()
    
    		})
    	}
    }
    
    func TestPrintIPAddress(t *testing.T) {
    	ip := networking.IPAddress{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  8. pkg/apis/batch/validation/validation_test.go

    				AllowElasticIndexedJobs: true,
    			},
    			err: &field.Error{
    				Type:  field.ErrorTypeInvalid,
    				Field: "spec.completions",
    			},
    		},
    		"indexed job with completions set updated to nil does not panic": {
    			old: batch.Job{
    				ObjectMeta: metav1.ObjectMeta{Name: "abc", Namespace: metav1.NamespaceDefault},
    				Spec: batch.JobSpec{
    					Selector:       validGeneratedSelector,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  9. pkg/scheduler/schedule_one_test.go

    		t.Errorf("events were reported with wrong controllers (-want, +got):\n%s", diff)
    	}
    }
    
    // TestSchedulerGuaranteeNonNilNodeInSchedulingCycle is for detecting potential panic on nil Node when iterating Nodes.
    func TestSchedulerGuaranteeNonNilNodeInSchedulingCycle(t *testing.T) {
    	if goruntime.GOOS == "windows" {
    		// TODO: remove skip once the failing test has been fixed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	    part of a test's identifier must match the corresponding element in
    //	    the sequence, if any.
    //
    //	-timeout d
    //	    If a test binary runs longer than duration d, panic.
    //	    If d is 0, the timeout is disabled.
    //	    The default is 10 minutes (10m).
    //
    //	-v
    //	    Verbose output: log all tests as they are run. Also print all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top