Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Foo (0.13 sec)

  1. internal/dsync/dsync_test.go

    	mu := NewDRWMutex(ds, "")
    	if slack {
    		b.SetParallelism(10)
    	}
    	b.RunParallel(func(pb *testing.PB) {
    		foo := 0
    		for pb.Next() {
    			mu.Lock(id, source)
    			mu.Unlock(context.Background())
    			if work {
    				for i := 0; i < 100; i++ {
    					foo *= 2
    					foo /= 2
    				}
    			}
    		}
    		_ = foo
    	})
    }
    
    func BenchmarkMutex(b *testing.B) {
    	benchmarkMutex(b, false, false)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  2. cmd/iam-etcd-store.go

    	}
    	return users
    }
    
    // Extract path string by stripping off the `prefix` value and the suffix,
    // value, usually in the following form.
    //
    //	s := "config/iam/users/foo/config.json"
    //	prefix := "config/iam/users/"
    //	suffix := "config.json"
    //	result is foo
    func extractPathPrefixAndSuffix(s string, prefix string, suffix string) string {
    	return pathClean(strings.TrimSuffix(strings.TrimPrefix(s, prefix), suffix))
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    				best = other
    				bestIdx = otherIdx
    				continue
    			}
    			// We should make sure to avoid objects and directories
    			// of this fashion such as
    			//  - foo-1
    			//  - foo-1/
    			// we should avoid this situation by making sure that
    			// we compare the `foo-1/` after path.Clean() to
    			// de-dup the entries.
    			if path.Clean(best.name) == path.Clean(other.name) {
    				toMerge = append(toMerge, otherIdx)
    				continue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. cmd/erasure-healing-common_test.go

    		}
    	}
    	partsMetadata[0] = partsMetadataBackup // Revert before going to the next test
    
    	// Test 3: Not synchronized DataDir
    	partsMetadataBackup = partsMetadata[1]
    	partsMetadata[1].DataDir = "foo-random"
    
    	errs = make([]error, len(erasureDisks))
    	filteredDisks, _, _ = disksWithAllParts(ctx, erasureDisks, partsMetadata,
    		errs, fi, bucket, object, madmin.HealDeepScan)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  5. internal/s3select/csv/reader_contrib_test.go

    			recordDelimiter: "\n",
    			fieldDelimiter:  ",",
    			sendErr:         nil,
    			header:          true,
    			wantColumns:     []string{"header1", "header2", "header3"},
    			wantFields:      "ok1,ok2,ok3\n" + `"foo""bar"` + "\n",
    			wantErr:         io.EOF,
    		},
    		{
    			// This works since LazyQuotes is true:
    			file:            "invalid-csv.csv",
    			recordDelimiter: "\n",
    			fieldDelimiter:  ",",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  6. cmd/storage-rest_test.go

    		{"foo", "newline\n", testData, false, true},
    		{"foo", "newline\t", testData, false, true},
    		{"foo", "newline \n", testData, false, true},
    		{"foo", "newline$$$\n", testData, false, true},
    		{"foo", "newline%%%\n", testData, false, true},
    		{"foo", "newline \t % $ & * ^ # @ \n", testData, false, true},
    		{"foo", "\n\tnewline \t % $ & * ^ # @ \n", testData, false, true},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. cmd/utils_test.go

    	}{
    		{[]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)
  8. internal/event/config_test.go

    		{[]byte(`<S3Key><FilterRule><Name>suffix</Name><Value>foo/bar</Value></FilterRule></S3Key>`), &FilterRuleList{[]FilterRule{{"suffix", "foo/bar"}}}, false},
    		{[]byte(`<S3Key><FilterRule><Name>prefix</Name><Value>Hello/世界</Value></FilterRule><FilterRule><Name>suffix</Name><Value>foo/bar</Value></FilterRule></S3Key>`), &FilterRuleList{[]FilterRule{{"prefix", "Hello/世界"}, {"suffix", "foo/bar"}}}, false},
    	}
    
    	for i, testCase := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 29K bytes
    - Viewed (0)
  9. cmd/endpoint_test.go

    	u2, _ := url.Parse("https://example.org/path")
    	u4, _ := url.Parse("http://192.168.253.200/path")
    	rootSlashFoo, _ := filepath.Abs("/foo")
    	testCases := []struct {
    		arg              string
    		expectedEndpoint Endpoint
    		expectedType     EndpointType
    		expectedErr      error
    	}{
    		{"/foo", Endpoint{&url.URL{Path: rootSlashFoo}, true, -1, -1, -1}, PathEndpointType, nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  10. cmd/sts-handlers.go

    			return
    		}
    	}
    
    	// We map the X.509 subject common name to the policy. So, a client
    	// with the common name "foo" will be associated with the policy "foo".
    	// Other mapping functions - e.g. public-key hash based mapping - are
    	// possible but not implemented.
    	//
    	// Group mapping is not possible with standard X.509 certificates.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
Back to top