Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SortSlices (0.08 sec)

  1. pkg/controller/servicecidrs/servicecidrs_controller_test.go

    			_, controller := newController(tCtx, t, tt.cidrs, nil)
    			err := controller.syncCIDRs()
    			if err != nil {
    				t.Fatal(err)
    			}
    			if got := controller.containingServiceCIDRs(tt.ip); !cmp.Equal(got, tt.want, cmpopts.SortSlices(func(a, b string) bool { return a < b })) {
    				t.Errorf("Controller.ipToCidrs() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestController_cidrToCidrs(t *testing.T) {
    	tests := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    				cmp.AllowUnexported(stateData{}),
    				cmp.AllowUnexported(PodVolumeClaims{}),
    				cmpopts.IgnoreFields(stateData{}, "Mutex"),
    				cmpopts.SortSlices(func(a *v1.PersistentVolume, b *v1.PersistentVolume) bool {
    					return a.Name < b.Name
    				}),
    				cmpopts.SortSlices(func(a v1.NodeSelectorRequirement, b v1.NodeSelectorRequirement) bool {
    					return a.Key < b.Key
    				}),
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
Back to top