Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for shouldPass (0.16 sec)

  1. cmd/object-api-putobject_test.go

    		if actualErr != nil && testCase.shouldPass {
    			t.Errorf("Test %d: %s: Expected to pass, but failed with: <ERROR> %s.", i+1, instanceType, actualErr.Error())
    		}
    		if actualErr == nil && !testCase.shouldPass {
    			t.Errorf("Test %d: %s: Expected to fail with <ERROR> \"%s\", but passed instead.", i+1, instanceType, testCase.expectedError.Error())
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  2. cmd/object-api-utils_test.go

    	}
    
    	for i, testCase := range testCases {
    		isValidBucketName := IsValidBucketName(testCase.bucketName)
    		if testCase.shouldPass && !isValidBucketName {
    			t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.bucketName)
    		}
    		if !testCase.shouldPass && isValidBucketName {
    			t.Errorf("Test case %d: Expected bucket name \"%s\" to be invalid", i+1, testCase.bucketName)
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    		expectedContent    []byte // expected response body.
    		expectedRespStatus int    // expected response status body.
    		// Access keys
    		accessKey        string
    		secretKey        string
    		shouldPass       bool
    		removeAuthHeader bool
    		fault            streamFault
    		// Custom content encoding.
    		contentEncoding string
    	}{
    		// Test case - 1.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  4. cmd/xl-storage_test.go

    		{"......", true},
    	}
    
    	for i, testCase := range testCases {
    		isValidVolname := isValidVolname(testCase.volName)
    		if testCase.shouldPass && !isValidVolname {
    			t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.volName)
    		}
    		if !testCase.shouldPass && isValidVolname {
    			t.Errorf("Test case %d: Expected bucket name \"%s\" to be invalid", i+1, testCase.volName)
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top