Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for DeepEqual (0.21 sec)

  1. cmd/erasure-metadata-utils_test.go

    	}
    
    	// Tests hashing order to be consistent.
    	for i, testCase := range testCases {
    		hashedOrder := hashOrder(testCase.objectName, 16)
    		if !reflect.DeepEqual(testCase.hashedOrder, hashedOrder) {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.hashedOrder, hashedOrder)
    		}
    	}
    
    	// Tests hashing order to fail for when order is '-1'.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. internal/event/config.go

    			for _, q2 := range parsedConfig.QueueList[i+1:] {
    				// Removes the region from ARN if server region is not set
    				if q2.ARN.region != "" && q1.ARN.region == "" {
    					q2.ARN.region = ""
    				}
    				if reflect.DeepEqual(q1, q2) {
    					return &ErrDuplicateQueueConfiguration{q1}
    				}
    			}
    		}
    	}
    
    	if len(parsedConfig.LambdaList) > 0 || len(parsedConfig.TopicList) > 0 {
    		return &ErrUnsupportedConfiguration{}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  3. cmd/bucket-notification-handlers.go

    				//
    				// With newer config disallowing changing / turning off
    				// notification targets without removing ARN in notification
    				// configuration we won't see this problem anymore.
    				if reflect.DeepEqual(queue.ARN, arnErr.ARN) && i < len(config.QueueList) {
    					config.QueueList = append(config.QueueList[:i],
    						config.QueueList[i+1:]...)
    				}
    				// This is a one time activity we shall do this
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  4. cmd/handler-utils_test.go

    			t.Fatalf("Test %d failed to extract metadata: %v", i+1, err)
    		}
    		if err == nil && testCase.shouldFail {
    			t.Fatalf("Test %d should fail, but it passed", i+1)
    		}
    		if err == nil && !reflect.DeepEqual(metadata, testCase.metadata) {
    			t.Fatalf("Test %d failed: Expected \"%#v\", got \"%#v\"", i+1, testCase.metadata, metadata)
    		}
    	}
    }
    
    // Test getResource()
    func TestGetResource(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. cmd/endpoint_test.go

    				} else if test.expectedEndpoint.URL.String() != endpoint.URL.String() {
    					t.Errorf("endpoint url: expected = %#v, got = %#v", test.expectedEndpoint.URL.String(), endpoint.URL.String())
    					return
    				}
    				if !reflect.DeepEqual(test.expectedEndpoint, endpoint) {
    					t.Errorf("endpoint: expected = %#v, got = %#v", test.expectedEndpoint, endpoint)
    				}
    			}
    
    			if err == nil && test.expectedType != endpoint.Type() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  6. istioctl/pkg/writer/envoy/configdump/listener.go

    		descrs = append(descrs, fmt.Sprintf("Trans: %s", match.TransportProtocol))
    	}
    
    	if len(match.ApplicationProtocols) > 0 {
    		found := false
    		for protDescr, protocols := range protDescrs {
    			if reflect.DeepEqual(match.ApplicationProtocols, protocols) {
    				found = true
    				descrs = append(descrs, protDescr)
    				break
    			}
    		}
    		if !found {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  7. cmd/bootstrap-peer-server.go

    	}
    
    	for i, cmdLine := range s1.CmdLines {
    		if cmdLine != s2.CmdLines[i] {
    			return fmt.Errorf("Expected command line argument %s, seen %s", cmdLine,
    				s2.CmdLines[i])
    		}
    	}
    
    	if reflect.DeepEqual(s1.MinioEnv, s2.MinioEnv) {
    		return nil
    	}
    
    	// Report differences in environment variables.
    	var missing []string
    	var mismatching []string
    	for k, v := range s1.MinioEnv {
    		ev, ok := s2.MinioEnv[k]
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  8. tests/callbacks_test.go

    }
    
    func TestCallbacksGet(t *testing.T) {
    	db, _ := gorm.Open(nil, nil)
    	createCallback := db.Callback().Create()
    
    	createCallback.Before("*").Register("c1", c1)
    	if cb := createCallback.Get("c1"); reflect.DeepEqual(cb, c1) {
    		t.Errorf("callbacks tests failed, got: %p, want: %p", cb, c1)
    	}
    
    	createCallback.Remove("c1")
    	if cb := createCallback.Get("c2"); cb != nil {
    		t.Errorf("callbacks test failed. got: %p, want: nil", cb)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  9. cmd/bucket-policy-handlers_test.go

    			gotPolicy, err = policy.ParseBucketPolicyConfig(bytes.NewReader(bucketPolicyReadBuf), testCase.bucketName)
    			if err != nil {
    				t.Fatalf("unexpected error. %v", err)
    			}
    
    			if !reflect.DeepEqual(expectedPolicy, gotPolicy) {
    				t.Errorf("Test %d: %s: Bucket policy differs from expected value.", i+1, instanceType)
    			}
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    			}
    			if test.wantErr && !sawErr {
    				t.Error("succeeded but want error")
    			} else if !test.wantErr && sawErr {
    				t.Error("unexpected error")
    			}
    			if test.want != nil && !reflect.DeepEqual(files, test.want) {
    				t.Errorf("got %v want %v", files, test.want)
    			}
    		})
    	}
    }
    
    func TestFSModTime(t *testing.T) {
    	t.Parallel()
    	z, err := OpenReader("testdata/subdir.zip")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top