Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for abcd (0.15 sec)

  1. internal/hash/reader_test.go

    		err               error
    	}{
    		0: {
    			desc:       "Success, no checksum verification provided.",
    			src:        bytes.NewReader([]byte("abcd")),
    			size:       4,
    			actualSize: 4,
    		},
    		{
    			desc:       "Failure md5 mismatch.",
    			src:        bytes.NewReader([]byte("abcd")),
    			size:       4,
    			actualSize: 4,
    			md5hex:     "d41d8cd98f00b204e9800998ecf8427f",
    			err: BadDigest{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  2. cmd/erasure-object_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	// Upload a good object
    	_, err = obj.DeleteObject(ctx, bucket, object, ObjectOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Create "obj" under "bucket".
    	_, err = obj.PutObject(ctx, bucket, object, mustGetPutObjReader(t, bytes.NewReader([]byte("abcd")), int64(len("abcd")), "", ""), opts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  3. internal/s3select/sql/parser_test.go

    		"extract(YEAR from '2018-01-09')",
    		"extract(month from '2018-01-09')",
    
    		"extract(hour from '2018-01-09')",
    		"extract(day from '2018-01-09')",
    		"substring('abcd' from 2 for 2)",
    		"substring('abcd' from 2)",
    		"substring('abcd' , 2 , 2)",
    
    		"substring('abcd' , 22 )",
    		"trim('  aab  ')",
    		"trim(leading from '  aab  ')",
    		"trim(trailing from '  aab  ')",
    		"trim(both from '  aab  ')",
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    		{bucketNames[1], objectNames[0], uploadIDs[3], 1, "abcd", "e2fc714c4727ee9395f324cd2e7f331f", int64(len("abcd")), "e2fc714c4727ee9395f324cd2e7f331f"},
    		// Case 8-13.
    		// Generating parts for different objects.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers_test.go

    				Message:  "Access Denied.",
    			},
    			shouldPass: false,
    		},
    		// GET wrong credentials
    		{
    			method: http.MethodGet, bucketName: bucketName,
    			accessKey:          "abcd",
    			secretKey:          "abcd",
    			expectedRespStatus: http.StatusForbidden,
    			lifecycleResponse:  []byte(""),
    			errorResponse: APIErrorResponse{
    				Resource: SlashSeparator + bucketName + SlashSeparator,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  6. cmd/utils_test.go

    		commonPrefix string
    	}{
    		{[]string{"", ""}, ""},
    		{[]string{"a", "b"}, ""},
    		{[]string{"a", "a"}, "a"},
    		{[]string{"a/", "a/"}, "a/"},
    		{[]string{"abcd/", ""}, ""},
    		{[]string{"abcd/foo/", "abcd/bar/"}, "abcd/"},
    		{[]string{"abcd/foo/bar/", "abcd/foo/bar/zoo"}, "abcd/foo/bar/"},
    	}
    
    	for i, test := range testCases {
    		foundPrefix := lcp(test.prefixes, true)
    		if foundPrefix != test.commonPrefix {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. cmd/object-handlers-common_test.go

    	}{
    		{
    			etag:              "\"\"\"",
    			canonicalizedETag: "",
    		},
    		{
    			etag:              "\"\"\"abc\"",
    			canonicalizedETag: "abc",
    		},
    		{
    			etag:              "abcd",
    			canonicalizedETag: "abcd",
    		},
    		{
    			etag:              "abcd\"\"",
    			canonicalizedETag: "abcd",
    		},
    	}
    	for _, test := range testCases {
    		etag := canonicalizeETag(test.etag)
    		if test.canonicalizedETag != etag {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  8. cmd/signature-v4-parser_test.go

    		{
    			inputCredentialStr:  "Credential=abc",
    			expectedCredentials: credentialHeader{},
    			expectedErrCode:     ErrCredMalformed,
    		},
    		// Test Case - 4.
    		// Test case with AccessKey of length 2.
    		{
    			inputCredentialStr: generateCredentialStr(
    				"^#",
    				UTCNow().Format(yyyymmdd),
    				"ABCD",
    				"ABCD",
    				"ABCD"),
    			expectedCredentials: credentialHeader{},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 27.4K bytes
    - Viewed (0)
  9. cmd/object-api-putobject_test.go

    		9: {
    			bucketName: bucket, objName: object, inputData: []byte("abcd"),
    			inputMeta: map[string]string{"etag": "900150983cd24fb0d6963f7d28e17f73"}, inputDataSize: int64(len("abcd") - 1),
    			expectedError: ioutil.ErrOverread,
    		},
    
    		// Validating for success cases.
    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)
  10. cmd/bucket-handlers_test.go

    			errorResponse: APIErrorResponse{},
    			shouldPass:    true,
    		},
    		// Test case - 2.
    		// Tests for signature mismatch error.
    		{
    			bucketName:         bucketName,
    			accessKey:          "abcd",
    			secretKey:          "abcd",
    			expectedRespStatus: http.StatusForbidden,
    			locationResponse:   []byte(""),
    			errorResponse: APIErrorResponse{
    				Resource: SlashSeparator + bucketName + SlashSeparator,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 39.5K bytes
    - Viewed (2)
Back to top