Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for TestSort (0.39 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          }
        }
      }
    
      public void testSort() {
        testSort(new byte[] {}, new byte[] {});
        testSort(new byte[] {2}, new byte[] {2});
        testSort(new byte[] {2, 1, 0}, new byte[] {0, 1, 2});
        testSort(new byte[] {2, GREATEST, 1, LEAST}, new byte[] {LEAST, 1, 2, GREATEST});
      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          }
        }
      }
    
      public void testSort() {
        testSort(new byte[] {}, new byte[] {});
        testSort(new byte[] {2}, new byte[] {2});
        testSort(new byte[] {2, 1, 0}, new byte[] {0, 1, 2});
        testSort(new byte[] {2, GREATEST, 1, LEAST}, new byte[] {LEAST, 1, 2, GREATEST});
      }
    
      static void testSort(byte[] input, byte[] expected) {
        input = Arrays.copyOf(input, input.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/cmp/cmp_test.go

    		case uintptr:
    			c = cmp.Compare(test.x.(uintptr), test.y.(uintptr))
    		}
    		if c != test.compare {
    			t.Errorf("Compare(%v, %v) == %d, want %d", test.x, test.y, c, test.compare)
    		}
    	}
    }
    
    func TestSort(t *testing.T) {
    	// Test that our comparison function is consistent with
    	// sort.Float64s.
    	input := []float64{1.0, 0.0, negzero, math.Inf(1), math.Inf(-1), math.NaN()}
    	sort.Float64s(input)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. pkg/slices/slices_test.go

    			result := SortBy(tc.input, tc.extract)
    			if !reflect.DeepEqual(result, tc.expected) {
    				t.Fatalf("Expected: %+v, but got: %+v", tc.expected, result)
    			}
    		})
    	}
    }
    
    func TestSort(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    []int
    		expected []int
    	}{
    		{
    			name:     "Single_Element",
    			input:    []int{1},
    			expected: []int{1},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. pkg/proxy/nftables/helpers_test.go

    			sourceIP: "10.0.0.2",
    			destIP:   "10.0.0.3",
    			destPort: 80,
    			output:   "",
    		},
    		{
    			name:     "single endpoint",
    			sourceIP: "10.0.0.2",
    			destIP:   "172.30.0.41",
    			destPort: 80,
    			output:   "10.180.0.1:80",
    		},
    		{
    			name:     "multiple endpoints",
    			sourceIP: "10.0.0.2",
    			destIP:   "172.30.0.44",
    			destPort: 80,
    			output:   "10.180.0.4:80, 10.180.0.5:80",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  6. pkg/proxy/nftables/proxier_test.go

    			destIP:   testNodeIP,
    			destPort: svcNodePort,
    			output:   "REJECT",
    		},
    		{
    			name:     "external to NodePort with no endpoints",
    			sourceIP: testExternalClient,
    			destIP:   testNodeIP,
    			destPort: svcNodePort,
    			output:   "REJECT",
    		},
    		{
    			name:     "pod to LoadBalancer IP with no endpoints",
    			sourceIP: "10.0.0.2",
    			destIP:   svcLBIP,
    			destPort: svcPort,
    			output:   "REJECT",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 173.5K bytes
    - Viewed (0)
  7. pkg/proxy/iptables/proxier_test.go

    	tracer.runChain(utiliptables.TableFilter, kubeExternalServicesChain, sourceIP, protocol, destIP, destPort)
    	tracer.runChain(utiliptables.TableFilter, kubeNodePortsChain, sourceIP, protocol, destIP, destPort)
    	tracer.runChain(utiliptables.TableFilter, kubeProxyFirewallChain, sourceIP, protocol, destIP, destPort)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (1)
  8. pkg/proxy/servicechangetracker_test.go

    					Ports: []v1.ServicePort{
    						{
    							Name:     "testPort",
    							Port:     int32(12345),
    							Protocol: v1.ProtocolTCP,
    						},
    					},
    				},
    			},
    			expected: map[ServicePortName]*BaseServicePortInfo{
    				makeServicePortName("test", "extra-space", "testPort", v1.ProtocolTCP): makeTestServiceInfo(testClusterIPv4, 12345, "TCP", 0, func(bsvcPortInfo *BaseServicePortInfo) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server_test.go

    				assert.Equal(t, testPodSandboxID, podSandboxID, "pod sandbox id")
    				// The port should be valid if it reaches here.
    				testPort, err := strconv.ParseInt(test.port, 10, 32)
    				require.NoError(t, err, "parse port")
    				assert.Equal(t, int32(testPort), port, "port")
    
    				if test.clientData != "" {
    					fromClient := make([]byte, 32)
    					n, err := stream.Read(fromClient)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top