Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for NCases (0.22 sec)

  1. src/reflect/all_test.go

    			cas.canSelect = true
    			numCanSelect++
    		}
    
    		// Permute cases and case info.
    		// Doing too much here makes the exhaustive loop
    		// too exhausting, so just do two swaps.
    		for loop := 0; loop < 2; loop++ {
    			i := x.Choose(len(cases))
    			j := x.Choose(len(cases))
    			cases[i], cases[j] = cases[j], cases[i]
    			info[i], info[j] = info[j], info[i]
    		}
    
    		if helper != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_builder_test.go

    			},
    		},
    	}
    
    	cases := []struct {
    		name         string
    		expectedName string
    		expectedPath string
    	}{
    		{
    			name:         "uds",
    			expectedName: security.SDSExternalClusterName,
    			expectedPath: security.CredentialNameSocketPath,
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  3. tests/integration/pilot/common/routing.go

    	var cases []TrafficTestCase
    	gatewayListenPort := 80
    	gatewayListenPortName := "tcp"
    
    	destinationSets := []echo.Instances{
    		apps.A,
    	}
    
    	for _, d := range destinationSets {
    		d := d
    		if len(d) == 0 {
    			continue
    		}
    
    		fqdn := d[0].Config().ClusterLocalFQDN()
    		cases = append(cases, TrafficTestCase{
    			name: d[0].Config().Service,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  4. pkg/registry/batch/job/strategy_test.go

    			},
    		},
    	}
    	updatedSuccessPolicy := &batch.SuccessPolicy{
    		Rules: []batch.SuccessPolicyRule{
    			{
    				SucceededIndexes: ptr.To("1,3-7"),
    				SucceededCount:   ptr.To[int32](5),
    			},
    		},
    	}
    
    	cases := map[string]struct {
    		enableJobPodFailurePolicy     bool
    		enableJobBackoffLimitPerIndex bool
    		enableJobPodReplacementPolicy bool
    		enableJobSuccessPolicy        bool
    		job                           batch.Job
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_node_status_test.go

    }
    
    func TestUpdateNewNodeStatus(t *testing.T) {
    	cases := []struct {
    		desc                string
    		nodeStatusMaxImages int32
    	}{
    		{
    			desc:                "5 image limit",
    			nodeStatusMaxImages: 5,
    		},
    		{
    			desc:                "no image limit",
    			nodeStatusMaxImages: -1,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.desc, func(t *testing.T) {
    			ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/gateway_test.go

    								Host: "example.org",
    								Port: &networking.PortSelector{
    									Number: 80,
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	}
    	cases := []struct {
    		name                              string
    		virtualServices                   []config.Config
    		gateways                          []config.Config
    		routeName                         string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller_test.go

    	podPriority := scheduling.SystemCriticalPriority
    	ds.Spec.Template.Spec.Priority = &podPriority
    }
    
    func TestNodeShouldRunDaemonPod(t *testing.T) {
    	shouldRun := true
    	shouldContinueRunning := true
    	cases := []struct {
    		predicateName                    string
    		podsOnNode                       []*v1.Pod
    		nodeCondition                    []v1.NodeCondition
    		nodeUnschedulable                bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__coordination.k8s.io__v1_openapi.json

              "401": {
                "description": "Unauthorized"
              }
            },
            "tags": [
              "coordination_v1"
            ]
          }
        },
        "/apis/coordination.k8s.io/v1/leases": {
          "get": {
            "description": "list or watch objects of kind Lease",
            "operationId": "listCoordinationV1LeaseForAllNamespaces",
            "responses": {
              "200": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 136.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods.go

    			// you can imagine this happening in cases where a container failed and the kubelet didn't ask about it in time to see the result.
    			// in this case, the container should not to into waiting state immediately because that can make cases like runonce pods actually run
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    "Switch" statements provide multi-way execution.
    An expression or type is compared to the "cases"
    inside the "switch" to determine which branch
    to execute.
    </p>
    
    <pre class="ebnf">
    SwitchStmt = ExprSwitchStmt | TypeSwitchStmt .
    </pre>
    
    <p>
    There are two forms: expression switches and type switches.
    In an expression switch, the cases contain expressions that are compared
    against the value of the switch expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top