Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 337 for Sort (0.04 sec)

  1. tests/joins_test.go

    	} else if len(users2) != len(users) {
    		t.Fatalf("Failed to load join users, got: %v, expect: %v", len(users2), len(users))
    	}
    
    	sort.Slice(users2, func(i, j int) bool {
    		return users2[i].ID > users2[j].ID
    	})
    
    	sort.Slice(users, func(i, j int) bool {
    		return users[i].ID > users[j].ID
    	})
    
    	for idx, user := range users {
    		CheckUser(t, user, users2[idx])
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry.go

    		return false
    	}
    	// Sort each slice so that we can compare them in order. Comparison is on the fields that are used in the test cases.
    	sort.SliceStable(ct.Metrics, func(i, j int) bool {
    		return ct.Metrics[i].Providers[0].Name < ct.Metrics[j].Providers[0].Name
    	})
    	sort.SliceStable(other.Metrics, func(i, j int) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

            """
    
            when:
            run 'copy'
            then:
            outputDirectory.list().sort() == [input.name, brokenLink.name].sort()
            executedAndNotSkipped ':copy'
    
            when:
            run 'copy'
            then:
            outputDirectory.list().sort() == [input.name, brokenLink.name].sort()
            skipped ':copy'
    
            when:
            brokenLink.delete()
            run 'copy'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		for idx := range containerPortMappings {
    			port := containerPortMappings[idx]
    			hostPort := int32(port.HostPort)
    			containerPort := int32(port.ContainerPort)
    			protocol := toRuntimeProtocol(port.Protocol)
    			portMappings = append(portMappings, &runtimeapi.PortMapping{
    				HostIp:        port.HostIP,
    				HostPort:      hostPort,
    				ContainerPort: containerPort,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. pkg/kubelet/images/image_gc_manager.go

    	i.Lock()
    	defer i.Unlock()
    	// The image list needs to be sorted when it gets read and used in
    	// setNodeStatusImages. We sort the list on write instead of on read,
    	// because the image cache is more often read than written
    	sort.Sort(sliceutils.ByImageSize(images))
    	i.images = images
    }
    
    // get gets image list from image cache.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            file("build").listFiles().sort() as List == [file("build/output.txt"), file("build/secondary.txt")]
    
            when:
            cleanBuildDir()
            withBuildCache().run "customTask"
            then:
            skipped ":customTask"
            file("build/output.txt").text == "data"
            file("build/secondary.txt").text == "secondary"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    	symNodes := nodesPerSymbol(g.Nodes, symbols)
    
    	// Sort for printing.
    	var syms []*objSymbol
    	for s := range symNodes {
    		syms = append(syms, s)
    	}
    	byName := func(a, b *objSymbol) bool {
    		if na, nb := a.sym.Name[0], b.sym.Name[0]; na != nb {
    			return na < nb
    		}
    		return a.sym.Start < b.sym.Start
    	}
    	if maxFuncs < 0 {
    		sort.Sort(orderSyms{syms, byName})
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedBytes.java

       *
       * @since 23.1
       */
      public static void sort(byte[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned bytes.
       *
       * @since 23.1
       */
      public static void sort(byte[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  9. pkg/kubelet/config/config_test.go

    	return channel, ch, config
    }
    
    func expectPodUpdate(t *testing.T, ch <-chan kubetypes.PodUpdate, expected ...kubetypes.PodUpdate) {
    	for i := range expected {
    		update := <-ch
    		sort.Sort(sortedPods(update.Pods))
    		sort.Sort(sortedPods(expected[i].Pods))
    		// Make copies of the expected/actual update to compare all fields
    		// except for "Pods", which are compared separately below.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. pkg/kubelet/certificate/kubelet.go

    	for dnsName := range seenDNSNames {
    		dnsNames = append(dnsNames, dnsName)
    	}
    	for ip := range seenIPs {
    		ips = append(ips, netutils.ParseIPSloppy(ip))
    	}
    
    	// return in stable order
    	sort.Strings(dnsNames)
    	sort.Slice(ips, func(i, j int) bool { return ips[i].String() < ips[j].String() })
    
    	return dnsNames, ips
    }
    
    // NewKubeletClientCertificateManager sets up a certificate manager without a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top