Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 188 for testcalls (0.08 sec)

  1. cmd/utils_test.go

    // TestCheckURL tests valid url.
    func TestCheckURL(t *testing.T) {
    	testCases := []struct {
    		urlStr     string
    		shouldPass bool
    	}{
    		{"", false},
    		{":", false},
    		{"http://localhost/", true},
    		{"http://127.0.0.1/", true},
    		{"proto://myhostname/path", true},
    	}
    
    	// Validates fetching local address.
    	for i, testCase := range testCases {
    		_, err := checkURL(testCase.urlStr)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. cmd/xl-storage_unix_test.go

    }
    
    // Tests if the directory and file creations happen with proper umask.
    func TestIsValidUmaskVol(t *testing.T) {
    	tmpPath := t.TempDir()
    	testCases := []struct {
    		volName       string
    		expectedUmask int
    	}{
    		{"is-this-valid", getUmask()},
    	}
    	testCase := testCases[0]
    
    	// Initialize a new xlStorage layer.
    	disk, err := newLocalXLStorage(tmpPath)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. cmd/storage-rest_test.go

    // inter-dependent, below test functions are sufficient to test all of them.
    func testStorageAPIDiskInfo(t *testing.T, storage StorageAPI) {
    	testCases := []struct {
    		expectErr bool
    	}{
    		{true},
    	}
    
    	for i, testCase := range testCases {
    		_, err := storage.DiskInfo(context.Background(), DiskInfoOptions{Metrics: true})
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. internal/event/rulesmap_test.go

    	rulesMapToAddCase3 := NewRulesMap([]Name{ObjectCreatedAll}, "*", TargetID{"1", "webhook"})
    
    	testCases := []struct {
    		rulesMap      RulesMap
    		rulesMapToAdd RulesMap
    	}{
    		{rulesMapCase1, rulesMapToAddCase1},
    		{rulesMapCase2, rulesMapToAddCase2},
    		{rulesMapCase3, rulesMapToAddCase3},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.rulesMap.Clone()
    
    		if !reflect.DeepEqual(result, testCase.rulesMap) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jan 05 18:43:06 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. internal/event/arn_test.go

    	"reflect"
    	"testing"
    )
    
    func TestARNString(t *testing.T) {
    	testCases := []struct {
    		arn            ARN
    		expectedResult string
    	}{
    		{ARN{}, ""},
    		{ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:sqs::1:webhook"},
    		{ARN{TargetID{"1", "webhook"}, "us-east-1"}, "arn:minio:sqs:us-east-1:1:webhook"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.arn.String()
    
    		if result != testCase.expectedResult {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  6. internal/config/lambda/event/arn_test.go

    import (
    	"testing"
    )
    
    func TestARNString(t *testing.T) {
    	testCases := []struct {
    		arn            ARN
    		expectedResult string
    	}{
    		{ARN{}, ""},
    		{ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:s3-object-lambda::1:webhook"},
    		{ARN{TargetID{"1", "webhook"}, "us-east-1"}, "arn:minio:s3-object-lambda:us-east-1:1:webhook"},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.arn.String()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. internal/event/targetlist_test.go

    		panic(err)
    	}
    
    	testCases := []struct {
    		targetList     *TargetList
    		targetID       TargetID
    		expectedResult bool
    	}{
    		{targetListCase1, TargetID{"1", "webhook"}, false},
    		{targetListCase2, TargetID{"1", "webhook"}, false},
    		{targetListCase3, TargetID{"3", "testcase"}, true},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.targetList.Exists(testCase.targetID)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/RelationshipTesterTest.java

    /**
     * Tests for {@link RelationshipTester}.
     *
     * @author Ben Yu
     */
    public class RelationshipTesterTest extends TestCase {
    
      public void testNulls() {
        new ClassSanityTester()
            .setDefault(ItemReporter.class, new ItemReporter())
            .testNulls(RelationshipTester.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 15 13:47:32 UTC 2016
    - 1K bytes
    - Viewed (0)
  9. cmd/auth-handler_test.go

    			pass:  false,
    		},
    	}
    	// Validate all the test cases.
    	for i, tt := range testCases {
    		ok := isSupportedS3AuthType(tt.authT)
    		if ok != tt.pass {
    			t.Errorf("Test %d:, Expected %t, got %t", i+1, tt.pass, ok)
    		}
    	}
    }
    
    func TestIsRequestPresignedSignatureV2(t *testing.T) {
    	testCases := []struct {
    		inputQueryKey   string
    		inputQueryValue string
    		expectedResult  bool
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. cmd/signature-v4-utils_test.go

    	for i, testCase := range testCases {
    		result := signV4TrimAll(testCase.inputStr)
    		if testCase.result != result {
    			t.Errorf("Test %d: Expected signV4TrimAll result to be \"%s\", but found it to be \"%s\" instead", i+1, testCase.result, result)
    		}
    	}
    }
    
    // Test getContentSha256Cksum
    func TestGetContentSha256Cksum(t *testing.T) {
    	testCases := []struct {
    		h        string // header SHA256
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top