Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CopyMerge (0.19 sec)

  1. pilot/pkg/model/push_context.go

    			pr.ConfigsUpdated.Insert(conf)
    		}
    	}
    
    	return pr
    }
    
    // CopyMerge two update requests together. Unlike Merge, this will not mutate either input.
    // This should be used when we are modifying a shared PushRequest (typically any time it's in the context
    // of a single proxy)
    func (pr *PushRequest) CopyMerge(other *PushRequest) *PushRequest {
    	if pr == nil {
    		return other
    	}
    	if other == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  2. pilot/pkg/model/push_context_test.go

    				Kind: kind.Kind(2),
    			}: {}}},
    			PushRequest{Full: true, ConfigsUpdated: nil, Reason: nil},
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			got := tt.left.CopyMerge(tt.right)
    			if !reflect.DeepEqual(&tt.merged, got) {
    				t.Fatalf("expected %v, got %v", &tt.merged, got)
    			}
    			got = tt.left.Merge(tt.right)
    			if !reflect.DeepEqual(&tt.merged, got) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
Back to top