Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,535 for Comparer (0.13 sec)

  1. operator/cmd/mesh/manifest-diff.go

    }
    
    func manifestDiffCmd(diffArgs *manifestDiffArgs) *cobra.Command {
    	cmd := &cobra.Command{
    		Use:   "diff <file|dir> <file|dir>",
    		Short: "Compare manifests and generate diff",
    		Long: "The diff subcommand compares manifests from two files or directories. The output is a list of\n" +
    			"changed paths with the value changes shown as OLD-VALUE -> NEW-VALUE.\n" +
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. pilot/test/util/diff.go

    // It is set using the environment variable REFRESH_GOLDEN.
    func Refresh() bool {
    	return env.Register("REFRESH_GOLDEN", false, "").Get()
    }
    
    // Compare compares two byte slices. It returns an error with a
    // contextual diff if they are not equal.
    func Compare(content, golden []byte) error {
    	data := strings.TrimSpace(string(content))
    	expected := strings.TrimSpace(string(golden))
    
    	if data != expected {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 05 08:53:20 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/semver/semver.go

    }
    
    // Max canonicalizes its arguments and then returns the version string
    // that compares greater.
    //
    // Deprecated: use [Compare] instead. In most cases, returning a canonicalized
    // version is not expected or desired.
    func Max(v, w string) string {
    	v = Canonical(v)
    	w = Canonical(w)
    	if Compare(v, w) > 0 {
    		return v
    	}
    	return w
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  4. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/tooling/TaskNameComparatorTest.groovy

    class TaskNameComparatorTest extends Specification {
        @Unroll('compares task names #first and #second')
        def compare() {
            def comparator = new TaskNameComparator()
    
            expect:
            comparator.compare(first, second) < 0
            comparator.compare(second, first) > 0
            comparator.compare(first, first) == 0
            comparator.compare(second, second) == 0
    
            where:
            first | second
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/testing/benchmark_test.go

    	testing.Benchmark(func(b *testing.B) {
    		var compares int64
    		for i := 0; i < b.N; i++ {
    			s := []int{5, 4, 3, 2, 1}
    			slices.SortFunc(s, func(a, b int) int {
    				compares++
    				return cmp.Compare(a, b)
    			})
    		}
    		// This metric is per-operation, so divide by b.N and
    		// report it as a "/op" unit.
    		b.ReportMetric(float64(compares)/float64(b.N), "compares/op")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/internal/bytealg/compare_riscv64.s

    	ADD	$4, X12
    	SUB	$4, X5
    	BGE	X5, X6, compare4_unaligned
    
    compare1:
    	BEQZ	X5, cmp_len
    	MOVBU	0(X10), X8
    	MOVBU	0(X12), X9
    	BNE	X8, X9, cmp
    	ADD	$1, X10
    	ADD	$1, X12
    	SUB	$1, X5
    	JMP	compare1
    
    	// Compare 8 bytes of memory in X15/X16 that are known to differ.
    cmp8a:
    	MOV	X15, X17
    	MOV	X16, X18
    
    	// Compare 8 bytes of memory in X17/X18 that are known to differ.
    cmp8b:
    	MOV	$0xff, X19
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. src/internal/bytealg/compare_mipsx.s

    	MOVW	b_len+12(FP), R2
    	BEQ	R3, R4, samebytes
    	SGTU	R1, R2, R7
    	MOVW	R1, R8
    	CMOVN	R7, R2, R8	// R8 is min(R1, R2)
    
    	ADDU	R3, R8	// R3 is current byte in a, R8 is last byte in a to compare
    loop:
    	BEQ	R3, R8, samebytes	// all compared bytes were the same; compare lengths
    
    	MOVBU	(R3), R6
    	ADDU	$1, R3
    	MOVBU	(R4), R7
    	ADDU	$1, R4
    	BEQ	R6, R7 , loop
    	// bytes differed
    	SGTU	R6, R7, R8
    	MOVW	$-1, R6
    	CMOVZ	R8, R6, R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 06 10:24:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/SignedBytes.java

        }
        return (byte) value;
      }
    
      /**
       * Compares the two specified {@code byte} values. The sign of the value returned is the same as
       * that of {@code ((Byte) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method behaves identically to the JDK 7 method {@link Byte#compare}.
       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/SignedBytes.java

        }
        return (byte) value;
      }
    
      /**
       * Compares the two specified {@code byte} values. The sign of the value returned is the same as
       * that of {@code ((Byte) a).compareTo(b)}.
       *
       * <p><b>Note:</b> this method behaves identically to the JDK 7 method {@link Byte#compare}.
       *
       * @param a the first {@code byte} to compare
       * @param b the second {@code byte} to compare
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  10. tests/util/compare_utils.go

    // limitations under the License.
    
    package util
    
    import (
    	"errors"
    	"strings"
    
    	"github.com/pmezard/go-difflib/difflib"
    )
    
    // Compare compares two byte slices. It returns an error with a
    // contextual diff if they are not equal.
    func Compare(out, model []byte) error {
    	data := strings.TrimSpace(string(out))
    	expected := strings.TrimSpace(string(model))
    
    	if data != expected {
    		diff := difflib.UnifiedDiff{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 1.2K bytes
    - Viewed (0)
Back to top