Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for casePC (0.13 sec)

  1. cmd/erasure-healing_test.go

    		expectedDangling bool
    	}{
    		{
    			name: "FileInfoExists-case1",
    			metaArr: []FileInfo{
    				{},
    				{},
    				fi,
    				fi,
    			},
    			errs: []error{
    				errFileNotFound,
    				errDiskNotFound,
    				nil,
    				nil,
    			},
    			dataErrs:         nil,
    			expectedMeta:     fi,
    			expectedDangling: false,
    		},
    		{
    			name: "FileInfoExists-case2",
    			metaArr: []FileInfo{
    				{},
    				{},
    				fi,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    		expectedErr error
    	}{
    		// TestXLStorage case - 1.
    		// A valid case, volume creation is expected to succeed.
    		{
    			volName:     "success-vol",
    			expectedErr: nil,
    		},
    		// TestXLStorage case - 2.
    		// Case where a file exists by the name of the volume to be created.
    		{
    			volName:     "vol-as-file",
    			expectedErr: errVolumeExists,
    		},
    		// TestXLStorage case - 3.
    		{
    			volName:     "existing-vol",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    	case *ast.FuncType:
    		p.print(token.FUNC)
    		p.signature(x)
    
    	case *ast.InterfaceType:
    		p.print(token.INTERFACE)
    		p.fieldList(x.Methods, false, x.Incomplete)
    
    	case *ast.MapType:
    		p.print(token.MAP, token.LBRACK)
    		p.expr(x.Key)
    		p.print(token.RBRACK)
    		p.expr(x.Value)
    
    	case *ast.ChanType:
    		switch x.Dir {
    		case ast.SEND | ast.RECV:
    			p.print(token.CHAN)
    		case ast.RECV:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    				}
    			}
    			// Since there are cases for which ListObjects fails, this is
    			// necessary. Test passes as expected, but the output values
    			// are verified for correctness here.
    			if err == nil && testCase.shouldPass {
    				// The length of the expected ListObjectsResult.Objects
    				// should match in both expected result from test cases
    				// and in the output. On failure calling t.Fatalf,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  5. pkg/kubelet/nodestatus/setters_test.go

    					"Diff: %s", cmp.Diff(testCase.expectedAnnotations, existingNode.Annotations))
    			}
    		})
    	}
    }
    
    // We can't test failure or autodetection cases here because the relevant code isn't mockable
    func TestNodeAddress_NoCloudProvider(t *testing.T) {
    	cases := []struct {
    		name              string
    		nodeIPs           []net.IP
    		expectedAddresses []v1.NodeAddress
    		shouldError       bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/math/big/float_test.go

    	// verify test data
    	var ok bool
    	switch mode {
    	case ToNearestEven, ToNearestAway:
    		ok = true // nothing to do for now
    	case ToZero:
    		if x < 0 {
    			ok = r >= x
    		} else {
    			ok = r <= x
    		}
    	case AwayFromZero:
    		if x < 0 {
    			ok = r <= x
    		} else {
    			ok = r >= x
    		}
    	case ToNegativeInf:
    		ok = r <= x
    	case ToPositiveInf:
    		ok = r >= x
    	default:
    		panic("unreachable")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  7. src/net/dnsclient_unix_test.go

    					},
    				},
    			}
    
    			switch q.Questions[0].Type {
    			case dnsmessage.TypeA:
    				r.Answers[0].Body = &dnsmessage.AResource{A: TestAddr}
    			case dnsmessage.TypeAAAA:
    				r.Answers[0].Body = &dnsmessage.AAAAResource{AAAA: TestAddr6}
    			case dnsmessage.TypeTXT:
    				r.Answers[0].Body = &dnsmessage.TXTResource{TXT: []string{"."}}
    			case dnsmessage.TypeMX:
    				r.Answers[0].Body = &dnsmessage.MXResource{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    		switch *options.PropagationPolicy {
    		case metav1.DeletePropagationOrphan:
    			return true
    		case metav1.DeletePropagationBackground, metav1.DeletePropagationForeground:
    			return false
    		}
    	}
    
    	// If a finalizer is set in the object, it overrides the default
    	// validation should make sure the two cases won't be true at the same time.
    	finalizers := accessor.GetFinalizers()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    	case OpARM64GreaterEqualU:
    		return OpARM64LessThanU
    	case OpARM64Equal:
    		return OpARM64NotEqual
    	case OpARM64NotEqual:
    		return OpARM64Equal
    	case OpARM64LessThanF:
    		return OpARM64NotLessThanF
    	case OpARM64NotLessThanF:
    		return OpARM64LessThanF
    	case OpARM64LessEqualF:
    		return OpARM64NotLessEqualF
    	case OpARM64NotLessEqualF:
    		return OpARM64LessEqualF
    	case OpARM64GreaterThanF:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  10. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    }
    
    func (nc *Controller) setLimiterInZone(zone string, zoneSize int, state ZoneState) {
    	switch state {
    	case stateNormal:
    		nc.zoneNoExecuteTainter[zone].SwapLimiter(nc.evictionLimiterQPS)
    	case statePartialDisruption:
    		nc.zoneNoExecuteTainter[zone].SwapLimiter(
    			nc.enterPartialDisruptionFunc(zoneSize))
    	case stateFullDisruption:
    		nc.zoneNoExecuteTainter[zone].SwapLimiter(
    			nc.enterFullDisruptionFunc(zoneSize))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top