Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 222 for case1 (0.05 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. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    		existingPods         []*v1.Pod
    		expectedPriorities   framework.NodeScoreList
    		nodeResourcesFitArgs config.NodeResourcesFitArgs
    		runPreScore          bool
    	}{
    		{
    			name: "test case for ScoringStrategy RequestedToCapacityRatio case1",
    			requestedPod: st.MakePod().
    				Req(map[v1.ResourceName]string{"cpu": "3000", "memory": "5000"}).
    				Obj(),
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  3. 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)
  4. tests/integration/security/authz_test.go

    								cases = append(cases,
    									testCase{
    										path:  fmt.Sprintf("/policy-%s-all", ns.Prefix()),
    										allow: ns.Name() == to.Config().Namespace.Name(),
    									})
    							}
    
    							// Make sure the workload-specific paths succeeds.
    							cases = append(cases,
    								testCase{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/ssa/prove.go

    		}
    
    		switch nxt.Op {
    		case OpAdd8:
    			nxt.Op = OpSub8
    		case OpAdd16:
    			nxt.Op = OpSub16
    		case OpAdd32:
    			nxt.Op = OpSub32
    		case OpAdd64:
    			nxt.Op = OpSub64
    		case OpSub8:
    			nxt.Op = OpAdd8
    		case OpSub16:
    			nxt.Op = OpAdd16
    		case OpSub32:
    			nxt.Op = OpAdd32
    		case OpSub64:
    			nxt.Op = OpAdd64
    		default:
    			panic("unreachable")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    		return
    	}
    
    	// determine token string
    	var tok string
    	switch p.tok {
    	case _Name:
    		tok = "name " + p.lit
    	case _Semi:
    		tok = p.lit
    	case _Literal:
    		tok = "literal " + p.lit
    	case _Operator:
    		tok = p.op.String()
    	case _AssignOp:
    		tok = p.op.String() + "="
    	case _IncOp:
    		tok = p.op.String()
    		tok += tok
    	default:
    		tok = tokstring(p.tok)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. 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)
  9. cmd/api-errors.go

    	case PrefixAccessDenied:
    		apiErr = ErrAccessDenied
    	case BucketNameInvalid:
    		apiErr = ErrInvalidBucketName
    	case BucketNotFound:
    		apiErr = ErrNoSuchBucket
    	case BucketAlreadyOwnedByYou:
    		apiErr = ErrBucketAlreadyOwnedByYou
    	case BucketNotEmpty:
    		apiErr = ErrBucketNotEmpty
    	case BucketAlreadyExists:
    		apiErr = ErrBucketAlreadyExists
    	case BucketExists:
    		apiErr = ErrBucketAlreadyOwnedByYou
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  10. src/time/format.go

    		}
    
    		switch std & stdMask {
    		case stdYear:
    			y := year
    			if y < 0 {
    				y = -y
    			}
    			b = appendInt(b, y%100, 2)
    		case stdLongYear:
    			b = appendInt(b, year, 4)
    		case stdMonth:
    			b = append(b, month.String()[:3]...)
    		case stdLongMonth:
    			m := month.String()
    			b = append(b, m...)
    		case stdNumMonth:
    			b = appendInt(b, int(month), 0)
    		case stdZeroMonth:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
Back to top