Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for makeSet (3.91 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go

    		{1000, 20, 60},
    	}
    
    	for i := range cases {
    		here := cases[i]
    		makeSet := func() String {
    			s := NewString()
    			for j := 0; j < here.size; j++ {
    				s.Insert(randomStringMaker.makeString(here.minStringLen, here.maxStringLen))
    			}
    			return s
    		}
    		operands := make([]String, 500)
    		for i := range operands {
    			operands[i] = makeSet()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/healthServer_test.go

    	defer server.Close()
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusServiceUnavailable)
    
    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    	assert.Equal(t, watchReady.Load(), true)
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. pkg/proxy/conntrack/conntrack_test.go

    	for _, tc := range testCases {
    		ct := makeCT(success)
    		if err := ct.ClearEntriesForIP(tc.ip, v1.ProtocolUDP); err != nil {
    			t.Errorf("%s/success: Unexpected error: %v", tc.name, err)
    		}
    		execCommand := ct.getExecutedCommand()
    		if tc.expectCommand != execCommand {
    			t.Errorf("%s/success: Expect command: %s, but executed %s", tc.name, tc.expectCommand, execCommand)
    		}
    
    		ct = makeCT(nothingToDelete)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:08:36 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux_loong64.go

    //sys	statx(dirfd int, path string, flags int, mask int, stat *statx_t) (err error)
    
    // makedev makes C dev_t from major and minor numbers the glibc way:
    // 0xMMMM_MMMM 0xmmmm_mmmm -> 0xMMMM_Mmmm_mmmM_MMmm
    func makedev(major uint32, minor uint32) uint64 {
    	majorH := uint64(major >> 12)
    	majorL := uint64(major & 0xfff)
    	minorH := uint64(minor >> 8)
    	minorL := uint64(minor & 0xff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/fixedbugs_test.go

    		// barrier call clobbers the result of makeT() before it is
    		// read by the write barrier code.
    		g = makeT()
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    }
    func TestIssue15854b(t *testing.T) {
    	const N = 10000
    	a := make([]T, N)
    	for i := 0; i < N; i++ {
    		a = append(a, makeT())
    		sink = make([]byte, 1000) // force write barriers to eventually happen
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/concurrent/hashtriemap_test.go

    		gmp := runtime.GOMAXPROCS(-1)
    		var wg sync.WaitGroup
    		for i := range gmp {
    			wg.Add(1)
    			go func(id int) {
    				defer wg.Done()
    
    				makeKey := func(s string) string {
    					return s + "-" + strconv.Itoa(id)
    				}
    				for _, s := range testData {
    					key := makeKey(s)
    					expectMissing(t, key, 0)(m.Load(key))
    					expectStored(t, key, id)(m.LoadOrStore(key, id))
    					expectPresent(t, key, id)(m.Load(key))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. pilot/pkg/xds/xds_cache_test.go

    	}
    }
    
    func TestXdsCache(t *testing.T) {
    	makeEp := func(subset string, dr *model.ConsolidatedDestRule) *endpoints.EndpointBuilder {
    		svc := &model.Service{Hostname: "foo.com"}
    		b := endpoints.NewCDSEndpointBuilder(
    			proxy, nil,
    			fmt.Sprintf("outbound|%s|foo.com", subset),
    			model.TrafficDirectionOutbound, subset, "foo.com", 80,
    			svc, dr)
    		return b
    	}
    	ep1 := makeEp("1", nil)
    	ep2 := makeEp("2", nil)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 31 20:43:08 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. pilot/pkg/networking/grpcgen/grpcecho_test.go

    			Version:    s.version,
    		})
    		if err != nil {
    			t.Fatal(err)
    		}
    		wg.Add(1)
    		if err := ep.Start(func() {
    			wg.Done()
    		}); err != nil {
    			t.Fatal(err)
    		}
    
    		cfgs = append(cfgs, makeWE(s, ip, ep.GetConfig().Port.Port))
    		cgt.endpoints = append(cgt.endpoints, ep)
    		t.Cleanup(func() {
    			if err := ep.Close(); err != nil {
    				t.Errorf("failed to close endpoint %s: %v", ip, err)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top