Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for shouldPass (0.21 sec)

  1. cmd/object-api-listobjects_test.go

    					testCase.prefix, testCase.marker, testCase.delimiter, testCase.maxKeys)
    			}
    			if err != nil && testCase.shouldPass {
    				t.Errorf("Test %d: %s:  Expected to pass, but failed with: <ERROR> %s", i+1, instanceType, err.Error())
    			}
    			if err == nil && !testCase.shouldPass {
    				t.Errorf("Test %d: %s: Expected to fail with <ERROR> \"%s\", but passed instead", i+1, instanceType, testCase.err.Error())
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  2. 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)
  3. 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