Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 292 for testCases (0.07 sec)

  1. cmd/update_test.go

    		},
    	}
    	for i, testCase := range testCases {
    		if testCase.errStr != "" {
    			got := releaseTimeToReleaseTag(testCase.t)
    			if got != testCase.tag && testCase.errStr == "" {
    				t.Errorf("Test %d: Expected %v but got %v", i+1, testCase.tag, got)
    			}
    		}
    		tagTime, err := releaseTagToReleaseTime(testCase.tag)
    		if err != nil && err.Error() != testCase.errStr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/object-api-utils_test.go

    		{"lalalallalallalalalallalallalala-thestring-size-is-greater-than-63", false},
    	}
    
    	for i, testCase := range testCases {
    		isValidBucketName := IsValidBucketName(testCase.bucketName)
    		if testCase.shouldPass && !isValidBucketName {
    			t.Errorf("Test case %d: Expected \"%s\" to be a valid bucket name", i+1, testCase.bucketName)
    		}
    		if !testCase.shouldPass && isValidBucketName {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  3. internal/store/store_test.go

    			},
    			expectedString: "01894394-d046-4783-ba0d-f1c6885790dc.event",
    		},
    	}
    
    	for i, testCase := range testCases {
    		if testCase.expectedString != testCase.key.String() {
    			t.Fatalf("case[%v]: key.String() Expected: %s, got %s", i, testCase.expectedString, testCase.key.String())
    		}
    	}
    }
    
    func TestParseKey(t *testing.T) {
    	testCases := []struct {
    		str         string
    		expectedKey Key
    	}{
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/object-handlers-common_test.go

    	"bytes"
    	"context"
    	"net/http"
    	"net/http/httptest"
    	"testing"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    // Tests - canonicalizeETag()
    func TestCanonicalizeETag(t *testing.T) {
    	testCases := []struct {
    		etag              string
    		canonicalizedETag string
    	}{
    		{
    			etag:              "\"\"\"",
    			canonicalizedETag: "",
    		},
    		{
    			etag:              "\"\"\"abc\"",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. cmd/xl-storage_test.go

    			expectedErr: errFileNameTooLong,
    		},
    	}
    
    	for i, testCase := range testCases {
    		if err := xlStorage.RenameFile(context.Background(), testCase.srcVol, testCase.srcPath, testCase.destVol, testCase.destPath); err != testCase.expectedErr {
    			t.Fatalf("TestXLStorage %d:  Expected the error to be : \"%v\", got: \"%v\".", i+1, testCase.expectedErr, err)
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  6. cmd/object-api-options_test.go

    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			rec := httptest.NewRecorder()
    			req := httptest.NewRequest("GET", "/test", nil)
    			req.Header = testCase.headers
    
    			opts, _ := getAndValidateAttributesOpts(ctx, rec, req, bucket, "testobject")
    
    			if !reflect.DeepEqual(opts.ObjectAttributes, testCase.wantObjectAttrs) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. internal/disk/stat_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			tmpfile, err := os.CreateTemp("", "testfile")
    			if err != nil {
    				t.Error(err)
    			}
    			tmpfile.WriteString(testCase.stat)
    			tmpfile.Sync()
    			tmpfile.Close()
    
    			iostats, err := readDriveStats(tmpfile.Name())
    			if err != nil && !testCase.expectErr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. cmd/object-api-deleteobject_test.go

    			[]string{"object0"},
    		},
    	}
    
    	for i, testCase := range testCases {
    		err := obj.MakeBucket(context.Background(), testCase.bucketName, MakeBucketOptions{})
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err.Error())
    		}
    
    		for _, object := range testCase.objectToUploads {
    			md5Bytes := md5.Sum([]byte(object.content))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. cmd/erasure-healing-common_test.go

    			},
    			timeSentinel,
    			5,
    		},
    	}
    
    	// Tests all the testcases, and validates them against expected
    	// common modtime. Tests fail if modtime does not match.
    	for i, testCase := range testCases {
    		// Obtain a common mod time from modTimes slice.
    		ctime := commonTime(testCase.times, testCase.quorum)
    		if !testCase.time.Equal(ctime) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

         * --- fail(). (If the test were to pass, its output would be hidden.)
         * - Run the test.
         * - Pull the relevant lines of output from the test into a testcases file.
         * - Test the output:
         * --- cat testcases | while read L; do
         *       X=($L)
         *       A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd |
         *           sed -e 's#^//*#/#' )
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top