Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for abcd (0.16 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. internal/s3select/sql/stringfuncs_contrib_test.go

    	evalCases := []struct {
    		s           string
    		startIdx    int
    		length      int
    		resExpected string
    		errExpected error
    	}{
    		{"abcd", 1, 1, "a", nil},
    		{"abcd", -1, 1, "a", nil},
    		{"abcd", 999, 999, "", nil},
    		{"", 999, 999, "", nil},
    		{"测试abc", 1, 1, "测", nil},
    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  6. 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)
  7. internal/s3select/sql/stringfuncs_test.go

    		matchExpected bool
    		errExpected   error
    	}{
    		{"abcd", "abc", runeZero, false, nil},
    		{"abcd", "abcd", runeZero, true, nil},
    		{"abcd", "abc_", runeZero, true, nil},
    		{"abcd", "_bdd", runeZero, false, nil},
    		{"abcd", "_b_d", runeZero, true, nil},
    
    		{"abcd", "____", runeZero, true, nil},
    		{"abcd", "____%", runeZero, true, nil},
    		{"abcd", "%____", runeZero, true, nil},
    		{"abcd", "%__", runeZero, true, nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top