Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 1,123 for Nil (0.02 sec)

  1. cmd/tier_gen_test.go

    	v := TierConfigMgr{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. cmd/metacache-set_gen_test.go

    	v := listPathOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. cmd/metacache-walk_gen_test.go

    	v := WalkDirOptions{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. cmd/site-replication-utils_gen_test.go

    	v := SiteResyncStatus{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Nov 14 15:16:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  5. cmd/handler-utils_test.go

    		// Empty header input returns empty metadata.
    		{
    			header:     nil,
    			metadata:   nil,
    			shouldFail: true,
    		},
    	}
    
    	// Validate if the extracting headers.
    	for i, testCase := range testCases {
    		metadata := make(map[string]string)
    		err := extractMetadataFromMime(context.Background(), textproto.MIMEHeader(testCase.header), metadata)
    		if err != nil && !testCase.shouldFail {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. cni/pkg/log/uds_test.go

    	out, err := io.ReadAll(r)
    	assert.NoError(t, err)
    
    	cases := []struct {
    		level string
    		msg   string
    		key   *float64
    	}{
    		{"debug", "debug log", nil},
    		{"info", "info log", nil},
    		{"warn", "warn log", nil},
    		{"error", "error log", nil},
    		{"info", "with labels", ptr.Of(float64(2))},
    	}
    	// For each level, there should be two lines, one from direct log,
    	// the other one from UDS server
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 16:26:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/tag.go

    			if !generate {
    				if !util.Confirm("Apply anyways? [y/N]", w) {
    					return nil
    				}
    			}
    		}
    	}
    
    	if generate {
    		_, err := w.Write([]byte(tagWhYAML))
    		if err != nil {
    			return err
    		}
    		return nil
    	}
    
    	if err := Create(kubeClient, tagWhYAML, istioNS); err != nil {
    		return fmt.Errorf("failed to apply tag webhook MutatingWebhookConfiguration to cluster: %v", err)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. tests/update_has_one_test.go

    )
    
    func TestUpdateHasOne(t *testing.T) {
    	user := *GetUser("update-has-one", Config{})
    
    	if err := DB.Create(&user).Error; err != nil {
    		t.Fatalf("errors happened when create: %v", err)
    	}
    
    	user.Account = Account{Number: "account-has-one-association"}
    
    	if err := DB.Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user2 User
    	DB.Preload("Account").Find(&user2, "id = ?", user.ID)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jul 14 06:55:54 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate_test.go

    				// this is nil since we've already have one with failed FailurePolicy in the fake client
    				if webhook.FailurePolicy != nil {
    					t.Fatalf("expected FailurePolicy to be nil, got %v", *webhook.FailurePolicy)
    				}
    
    				if tc.whSVC != "" {
    					if validationWhConf.Service == nil {
    						t.Fatalf("expected validation service %s, got nil", tc.whSVC)
    					}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. cmd/metacache-set.go

    				continue
    			}
    			if o.Lifecycle != nil || o.Replication.Config != nil {
    				if skipped := triggerExpiryAndRepl(ctx, *o, entry); skipped == true {
    					results.lastSkippedEntry = entry.name
    					continue
    				}
    			}
    			if o.Limit > 0 && results.len() >= o.Limit {
    				// We have enough and we have more.
    				// Do not return io.EOF
    				if resCh != nil {
    					resErr = nil
    					select {
    					case resCh <- results:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top