Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 519 for testName (0.04 sec)

  1. cmd/erasure-metadata_test.go

    	}
    
    	// Test them.
    	for _, testCase := range testCases {
    		index, offset, err := fi.ObjectToPartOffset(t.Context(), testCase.offset)
    		if err != testCase.expectedErr {
    			t.Fatalf("%+v: expected = %s, got: %s", testCase, testCase.expectedErr, err)
    		}
    		if index != testCase.expectedIndex {
    			t.Fatalf("%+v: index: expected = %d, got: %d", testCase, testCase.expectedIndex, index)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  2. cmd/xl-storage_unix_test.go

    	st, err := os.Stat(path.Join(tmpPath, testCase.volName))
    	if err != nil {
    		t.Fatalf("Stat failed with %s expected to pass.", err)
    	}
    
    	// Get umask of the bits stored.
    	currentUmask := 0o777 - uint32(st.Mode().Perm())
    
    	// Verify if umask is correct.
    	if int(currentUmask) != testCase.expectedUmask {
    		t.Fatalf("Umask check failed expected %d, got %d", testCase.expectedUmask, currentUmask)
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. cmd/server-main_test.go

    		{
    			config:      "testdata/config/invalid-disks.yaml",
    			expectedErr: true,
    		},
    	} {
    		t.Run(testcase.config, func(t *testing.T) {
    			sctx := &serverCtxt{}
    			err := mergeServerCtxtFromConfigFile(testcase.config, sctx)
    			if testcase.expectedErr && err == nil {
    				t.Error("expected failure, got success")
    			}
    			if !testcase.expectedErr && err != nil {
    				t.Error("expected success, got failure", err)
    			}
    			if err == nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-decom_test.go

    		},
    	}
    
    	t.Parallel()
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			update, err := testCase.meta.validate(testCase.pools)
    			if testCase.expectedErr {
    				t.Log(err)
    			}
    			if err != nil && !testCase.expectedErr {
    				t.Errorf("Expected success, but found %s", err)
    			}
    			if err == nil && testCase.expectedErr {
    				t.Error("Expected error, but got `nil`")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. cmd/post-policy_test.go

    		},
    	}
    
    	for i, testCase := range testCasesV4BadData {
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		rec := httptest.NewRecorder()
    
    		testCase.policy = fmt.Sprintf(testCase.policy, testCase.dates...)
    
    		req, perr := newPostRequestV4Generic("", bucketName, testCase.objectName, testCase.data, testCase.accessKey,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  6. cmd/api-response_test.go

    			expectedLocation: "https://mybucket.mys3.bucket.org/test/1.txt",
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run("", func(t *testing.T) {
    			gotLocation := getObjectLocation(testCase.request, testCase.domains, testCase.bucket, testCase.object)
    			if testCase.expectedLocation != gotLocation {
    				t.Errorf("expected %s, got %s", testCase.expectedLocation, gotLocation)
    			}
    		})
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. cmd/bucket-policy-handlers_test.go

    		}
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		recV2 := httptest.NewRecorder()
    		// construct HTTP request for PUT bucket policy endpoint.
    		reqV2, err := newTestSignedRequestV2(http.MethodPut, getPutPolicyURL("", testCase.bucketName),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  8. utils/utils_test.go

    			trimLen:  -1,
    			expected: []int{1, 2, 3},
    		},
    	}
    
    	for _, testcase := range tests {
    		t.Run(testcase.name, func(t *testing.T) {
    			result := RTrimSlice(testcase.input, testcase.trimLen)
    			if !AssertEqual(result, testcase.expected) {
    				t.Errorf("RTrimSlice(%v, %d) = %v; want %v", testcase.input, testcase.trimLen, result, testcase.expected)
    			}
    		})
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt

      @Test fun setDate() {
        val expected = Date(1000)
        val headers =
          Headers
            .Builder()
            .add("testDate", Date(0L))
            .set("testDate", expected)
            .build()
        assertThat(headers["testDate"]).isEqualTo("Thu, 01 Jan 1970 00:00:01 GMT")
        assertThat(headers.getDate("testDate")).isEqualTo(expected)
      }
    
      @Test fun setInstant() {
        val expected = Instant.ofEpochMilli(1000L)
        val headers =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. cmd/endpoint_contrib_test.go

    	}
    
    	for _, testCase := range ipv4TestCases {
    		globalDomainIPs = nil
    
    		updateDomainIPs(testCase.endPoints)
    
    		if !testCase.expectedResult.Equals(globalDomainIPs) {
    			t.Fatalf("error: expected = %s, got = %s", testCase.expectedResult, globalDomainIPs)
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 30 15:50:39 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top