Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for Run (0.04 sec)

  1. cmd/xl-storage-format_test.go

    					Hash:       nil,
    				},
    				{
    					PartNumber: 2,
    					Algorithm:  HighwayHash256S,
    					Hash:       nil,
    				},
    			},
    		},
    	}
    	for _, size := range []int{1, 10, 1000, 100_000} {
    		b.Run(fmt.Sprint(size, "-versions"), func(b *testing.B) {
    			var xl xlMetaV2
    			ids := make([]string, size)
    			for i := 0; i < size; i++ {
    				fi.VersionID = mustGetUUID()
    				fi.DataDir = mustGetUUID()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    				name: fmt.Sprint(a.GetTypeString(), "==", b.GetTypeString()),
    				fields: fields{
    					a: *a, b: *b,
    				},
    				wantOk: i == j,
    			})
    		}
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if gotOk := tt.fields.a.SameTypeAs(tt.fields.b); gotOk != tt.wantOk {
    				t.Errorf("SameTypeAs() = %v, want %v", gotOk, tt.wantOk)
    			}
    		})
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    		}
    		t.Log("client after", time.Since(clientEnd))
    	}
    	// local to remote, unbuffered
    	t.Run("unbuffered", func(t *testing.T) {
    		testHandler(t, handlerTest, false)
    	})
    	t.Run("buffered", func(t *testing.T) {
    		testHandler(t, handlerTest2, false)
    	})
    	t.Run("buffered", func(t *testing.T) {
    		testHandler(t, handlerTest2, true)
    	})
    }
    
    // testStreamDeadline will test if server
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. cmd/xl-storage-disk-id-check.go

    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricMakeVolBulk, volumes...)
    	if err != nil {
    		return err
    	}
    	defer done(0, &err)
    
    	w := xioutil.NewDeadlineWorker(globalDriveConfig.GetMaxTimeout())
    	return w.Run(func() error { return p.storage.MakeVolBulk(ctx, volumes...) })
    }
    
    func (p *xlStorageDiskIDCheck) MakeVol(ctx context.Context, volume string) (err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricMakeVol, volume)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. cmd/data-usage_test.go

    		},
    		{
    			path:  "/dir1/dira",
    			isNil: true,
    		},
    		{
    			path:  "/nonexistying",
    			isNil: true,
    		},
    	}
    
    	for _, w := range want {
    		p := path.Join(bucket, w.path)
    		t.Run(p, func(t *testing.T) {
    			e := got.find(p)
    			if w.isNil {
    				if e != nil {
    					t.Error("want nil, got", e)
    				}
    				return
    			}
    			if e == nil {
    				t.Fatal("got nil result")
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 27 15:10:40 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. cmd/local-locker_test.go

    		if testing.Short() && locks > 100 {
    			continue
    		}
    		t.Run(fmt.Sprintf("%d-locks", locks), func(t *testing.T) {
    			// Number of readers per lock...
    			for _, readers := range []int{1, 10, 100} {
    				if locks > 1000 && readers > 1 {
    					continue
    				}
    				if testing.Short() && readers > 10 {
    					continue
    				}
    				t.Run(fmt.Sprintf("%d-read", readers), func(t *testing.T) {
    					l := newLocker()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2_test.go

    			quorum:      7,
    			reqVersions: 0,
    			want:        []xlMetaV2ShallowVersion{vDelMarker, vObj},
    		},
    	}
    	for _, test := range testCases {
    		t.Run(test.name, func(t *testing.T) {
    			// Run multiple times, shuffling the input order.
    			for i := int64(0); i < 50; i++ {
    				t.Run(fmt.Sprint(i), func(t *testing.T) {
    					rng := rand.New(rand.NewSource(i))
    					rng.Shuffle(len(test.input), func(i, j int) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil.go

    		timeout: timeout,
    	}
    	return dw
    }
    
    // Run runs the given function, passing it a stopper channel. If the deadline passes before
    // the function finishes executing, Run returns context.DeadlineExceeded to the caller.
    // channel so that the work function can attempt to exit gracefully.
    // Multiple calls to Run will run independently of each other.
    func (d *DeadlineWorker) Run(work func() error) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. cmd/endpoint-ellipses_test.go

    		{":9001", []string{"http://localhost:9001/export{1...64}"}, true},
    		{":9001", []string{"http://localhost:9001/export{01...64}"}, true},
    	}
    
    	for i, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			srvCtxt := serverCtxt{}
    			err := mergeDisksLayoutFromArgs(testCase.args, &srvCtxt)
    			if err != nil && testCase.success {
    				t.Fatalf("Test %d: unexpected error: %v", i+1, err)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. cmd/object-api-utils_test.go

    		}
    	}
    	return path.Join(elem...) + trailingSlash
    }
    
    func BenchmarkPathJoinOld(b *testing.B) {
    	b.Run("PathJoin", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    
    		for i := 0; i < b.N; i++ {
    			pathJoinOld("volume", "path/path/path")
    		}
    	})
    }
    
    func BenchmarkPathJoin(b *testing.B) {
    	b.Run("PathJoin", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    
    		for i := 0; i < b.N; i++ {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top