- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for teston (0.19 sec)
-
cmd/data-usage_test.go
package cmd import ( "bytes" "context" "encoding/json" "fmt" "os" "path" "path/filepath" "testing" ) type usageTestFile struct { name string size int } func TestDataUsageUpdate(t *testing.T) { base := t.TempDir() const bucket = "bucket" files := []usageTestFile{ {name: "rootfile", size: 10000}, {name: "rootfile2", size: 10000},
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 14.1K bytes - Viewed (0) -
internal/grid/grid_test.go
} // local to remote, unbuffered t.Run("unbuffered", func(t *testing.T) { testHandler(t, handlerTest) }) t.Run("buffered", func(t *testing.T) { testHandler(t, handlerTest2) }) } // testStreamDeadline will test if server func testStreamDeadline(t *testing.T, local, remote *Manager) { defer testlogger.T.SetErrorTB(t)() errFatal := func(err error) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 30 15:03:35 GMT 2024 - 30.1K bytes - Viewed (0) -
cmd/post-policy_test.go
} for i, test := range testCasesV2 { // initialize HTTP NewRecorder, this records any mutations to response writer inside the handler. rec := httptest.NewRecorder() req, perr := newPostRequestV2("", bucketName, "testobject", test.accessKey, test.secretKey) if perr != nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 16:45:54 GMT 2024 - 29.6K bytes - Viewed (0) -
cmd/format-erasure_test.go
} } } } func BenchmarkInitStorageDisks256(b *testing.B) { benchmarkInitStorageDisksN(b, 256) } func BenchmarkInitStorageDisks1024(b *testing.B) { benchmarkInitStorageDisksN(b, 1024) } func BenchmarkInitStorageDisks2048(b *testing.B) { benchmarkInitStorageDisksN(b, 2048) } func BenchmarkInitStorageDisksMax(b *testing.B) { benchmarkInitStorageDisksN(b, 32*204) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 15 08:25:46 GMT 2024 - 12.9K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
if got != testCase.expected { t.Errorf("Test %d: got:%s expected:%s", i+1, got, testCase.expected) } } } // Test TestCheckMetaHeaders tests the logic of checkMetaHeaders() function func TestCheckMetaHeaders(t *testing.T) { signedHeadersMap := map[string][]string{ "X-Amz-Meta-Test": {"test"}, "X-Amz-Meta-Extension": {"png"}, "X-Amz-Meta-Name": {"imagepng"}, }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 05 21:26:41 GMT 2024 - 14.3K bytes - Viewed (0) -
internal/bucket/replication/replication_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package replication import ( "bytes" "fmt" "testing" ) func TestParseAndValidateReplicationConfig(t *testing.T) { testCases := []struct { inputConfig string expectedParsingErr error expectedValidationErr error destBucket string sameTarget bool
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Mar 28 17:44:56 GMT 2024 - 32.5K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
}, } 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) { test.input[i], test.input[j] = test.input[j], test.input[i] })
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Mar 08 17:50:48 GMT 2024 - 36.4K bytes - Viewed (0) -
cmd/erasure-healing_test.go
"io" "os" "path" "reflect" "testing" "time" "github.com/dustin/go-humanize" uuid2 "github.com/google/uuid" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/config/storageclass" ) // Tests isObjectDangling function func TestIsObjectDangling(t *testing.T) { fi := newFileInfo("test-object", 2, 2) fi.Erasure.Index = 1 ifi := newFileInfo("test-object", 2, 2) ifi.SetInlineData()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 47.6K bytes - Viewed (0) -
cmd/update_test.go
} if !strings.Contains(str, expectedStr) { t.Errorf("Test %d: expected: %s, got: %s", i+1, expectedStr, str) } globalIsCICD = sci os.Unsetenv("MARATHON_APP_LABEL_DCOS_PACKAGE_VERSION") os.Unsetenv(testCase.envName) } } // Tests if the environment we are running is in DCOS. func TestIsDCOS(t *testing.T) { sci := globalIsCICD globalIsCICD = false defer func() {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 10.7K bytes - Viewed (0)