Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for compareIDs (0.24 sec)

  1. src/go/types/generate_test.go

    	dstDir = "/src/go/types/"
    )
    
    // TestGenerate verifies that generated files in go/types match their types2
    // counterpart. If -write is set, this test actually writes the expected
    // content to go/types; otherwise, it just compares with the existing content.
    func TestGenerate(t *testing.T) {
    	// If filesToWrite is set, write the generated content to disk.
    	// In the special case of "all", write all files in filemap.
    	write := *filesToWrite != ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. src/go/printer/printer_test.go

    // lineAt returns the line in text starting at offset offs.
    func lineAt(text []byte, offs int) []byte {
    	i := offs
    	for i < len(text) && text[i] != '\n' {
    		i++
    	}
    	return text[offs:i]
    }
    
    // checkEqual compares a and b.
    func checkEqual(aname, bname string, a, b []byte) error {
    	if bytes.Equal(a, b) {
    		return nil
    	}
    	return errors.New(string(diff.Diff(aname, a, bname, b)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. src/runtime/iface.go

    	return newC
    }
    
    // Empty type assert cache. Contains one entry with a nil Typ (which
    // causes a cache lookup to fail immediately.)
    var emptyTypeAssertCache = abi.TypeAssertCache{Mask: 0}
    
    // interfaceSwitch compares t against the list of cases in s.
    // If t matches case i, interfaceSwitch returns the case index i and
    // an itab for the pair <t, s.Cases[i]>.
    // If there is no match, return N,nil, where N is the number
    // of cases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  4. pkg/kubelet/container/runtime.go

    	"k8s.io/klog/v2"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    // Version interface allow to consume the runtime versions - compare and format to string.
    type Version interface {
    	// Compare compares two versions of the runtime. On success it returns -1
    	// if the version is less than the other, 1 if it is greater than the other,
    	// or 0 if they are equal.
    	Compare(other string) (int, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/storage/v1/types.go

    //
    // They are consumed by the kube-scheduler when a CSI driver opts into
    // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
    // compares the MaximumVolumeSize against the requested size of pending volumes
    // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
    // to a comparison against the less precise Capacity. If that is also unset,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. src/time/format_test.go

    		f.Add(tt.value)
    	}
    	for _, tt := range longFractionalDigitsTests {
    		f.Add(tt.value)
    	}
    
    	f.Fuzz(func(t *testing.T, s string) {
    		// equalTime is like time.Time.Equal, but also compares the time zone.
    		equalTime := func(t1, t2 Time) bool {
    			name1, offset1 := t1.Zone()
    			name2, offset2 := t2.Zone()
    			return t1.Equal(t2) && name1 == name2 && offset1 == offset2
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/types.go

    	// Lazily allocate scalar resource map.
    	if r.ScalarResources == nil {
    		r.ScalarResources = map[v1.ResourceName]int64{}
    	}
    	r.ScalarResources[name] = quantity
    }
    
    // SetMaxResource compares with ResourceList and takes max value for each Resource.
    func (r *Resource) SetMaxResource(rl v1.ResourceList) {
    	if r == nil {
    		return
    	}
    
    	for rName, rQuantity := range rl {
    		switch rName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  8. pilot/pkg/model/telemetry.go

    }
    
    func disableHostHeaderFallback(class networking.ListenerClass) bool {
    	return class == networking.ListenerClassSidecarInbound || class == networking.ListenerClassGateway
    }
    
    // Equal compares two computedTelemetries for equality. This was created to help with testing. Because of the nature of the structs being compared,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 18:14:09 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modfetch/fetch.go

    	UsageLine: "module-auth",
    	Short:     "module authentication using go.sum",
    	Long: `
    When the go command downloads a module zip file or go.mod file into the
    module cache, it computes a cryptographic hash and compares it with a known
    value to verify the file hasn't changed since it was first downloaded. Known
    hashes are stored in a file in the module root directory named go.sum. Hashes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    			}
    			s = nodeSorter{ns, scoreOrder}
    		}
    	default:
    		return fmt.Errorf("report: unrecognized sort ordering: %d", o)
    	}
    	sort.Sort(s)
    	return nil
    }
    
    // compareNodes compares two nodes to provide a deterministic ordering
    // between them. Two nodes cannot have the same Node.Info value.
    func compareNodes(l, r *Node) bool {
    	return fmt.Sprint(l.Info) < fmt.Sprint(r.Info)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top