Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 449 for Cmp (0.04 sec)

  1. src/net/dnsclient.go

    	}
    }
    
    // sort reorders SRV records as specified in RFC 2782.
    func (addrs byPriorityWeight) sort() {
    	slices.SortFunc(addrs, func(a, b *SRV) int {
    		if r := cmp.Compare(a.Priority, b.Priority); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Weight, b.Weight)
    	})
    	i := 0
    	for j := 1; j < len(addrs); j++ {
    		if addrs[i].Priority != addrs[j].Priority {
    			addrs[i:j].shuffleByWeight()
    			i = j
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        E current = thisIterator.next();
        try {
          while (true) {
            int cmp = unsafeCompare(current, target);
    
            if (cmp < 0) {
              if (!thisIterator.hasNext()) {
                return false;
              }
              current = thisIterator.next();
            } else if (cmp == 0) {
              if (!thatIterator.hasNext()) {
                return true;
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. pilot/pkg/security/model/authentication_test.go

    	auth "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3"
    	matcher "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/protobuf/testing/protocmp"
    	"google.golang.org/protobuf/types/known/durationpb"
    
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pilot/pkg/model/credentials"
    	"istio.io/istio/pkg/security"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 20 22:39:21 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_tidy_compat_incompatible.txt

    [exec:patch] cp stdout diff.patch
    [exec:patch] exec patch -p1 -i diff.patch
    [exec:patch] go mod tidy -compat=1.17 -diff
    [exec:patch] ! stdout .
    [exec:patch] cmp go.mod go.mod.tidyResult
    [exec:patch] cmp go.sum go.sum.tidyResult
    
    go mod edit -go=1.16
    ! go list -f $MODFMT -deps ./...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/trace/regions.go

    		for _, stats := range summary {
    			userRegions = append(userRegions, stats)
    		}
    		slices.SortFunc(userRegions, func(a, b regionStats) int {
    			if c := cmp.Compare(a.Type, b.Type); c != 0 {
    				return c
    			}
    			return cmp.Compare(a.Frame.PC, b.Frame.PC)
    		})
    		// Emit table.
    		err := templUserRegionTypes.Execute(w, userRegions)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package interpodaffinity
    
    import (
    	"context"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/scheduler/apis/config"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/testing/benchmark_test.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"bytes"
    	"cmp"
    	"runtime"
    	"slices"
    	"strings"
    	"sync/atomic"
    	"testing"
    	"text/template"
    	"time"
    )
    
    var prettyPrintTests = []struct {
    	v        float64
    	expected string
    }{
    	{0, "         0 x"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_pgo.txt

    # build again with the same profile, should be cached
    go build -x -pgo=prof -o triv.exe triv.go
    ! stderr 'compile.*triv.go'
    
    # check that the build ID is the same
    go list -export -json=BuildID -pgo=prof triv.go
    cmp stdout list.out
    
    # overwrite the prof
    go run overwrite.go
    
    # build again, profile content changed, should trigger rebuild, including std
    go build -n -pgo=prof triv.go
    stderr 'preprofile.*-i.*prof'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/build_plugin_reproducible.txt

    [!buildmode:plugin] skip
    [short] skip
    [!cgo] skip '-buildmode=plugin requires external linking'
    
    go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
    go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
    cmp -q a.so b.so
    
    -- main.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:07:03 UTC 2024
    - 296 bytes
    - Viewed (0)
  10. pkg/volume/emptydir/empty_dir.go

    		if podMemoryLimit.Cmp(zero) > 0 && podMemoryLimit.Cmp(*sizeLimit) < 1 {
    			sizeLimit = podMemoryLimit
    		}
    	}
    
    	// volume local size is  used if and only if less than what pod could consume
    	if spec.Volume.EmptyDir.SizeLimit != nil {
    		volumeSizeLimit := spec.Volume.EmptyDir.SizeLimit
    		// ensure 0 < value < size
    		if volumeSizeLimit.Cmp(zero) > 0 && volumeSizeLimit.Cmp(*sizeLimit) < 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top