Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,301 for compared (0.12 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/strategy/DefaultVersionComparatorTest.groovy

        def compare(String s1, String s2) {
            return comparator.compare(new VersionInfo(versionParser.transform(s1)), new VersionInfo(versionParser.transform(s2)))
        }
    
        def "numeric parts are compared as numbers"() {
            expect:
            compare(smaller, larger) < 0
            compare(larger, smaller) > 0
            compare(smaller, smaller) == 0
            compare(larger, larger) == 0
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    }
    
    // An ifacePair is a node in a stack of interface type pairs compared for identity.
    type ifacePair struct {
    	x, y *Interface
    	prev *ifacePair
    }
    
    func (p *ifacePair) identical(q *ifacePair) bool {
    	return p.x == q.x && p.y == q.y || p.x == q.y && p.y == q.x
    }
    
    // A comparer is used to compare types.
    type comparer struct {
    	ignoreTags     bool // if set, identical ignores struct tags
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/execution/plan/OrdinalGroupFactory.java

    import javax.annotation.Nullable;
    import java.util.ArrayList;
    import java.util.List;
    
    /**
     * Preserves identity of {@see OrdinalGroup} instances so there's a 1-to-1 mapping of ordinals to groups allowing groups
     * to be freely compared by identity.
     */
    @ServiceScope(Scope.Build.class)
    public class OrdinalGroupFactory {
    
        private final List<OrdinalGroup> groups = new ArrayList<>();
    
        public final OrdinalGroup group(int ordinal) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/fingerprint/classpath/ClasspathFingerprinter.java

    import org.gradle.internal.service.scopes.ServiceScope;
    
    /**
     * Responsible for calculating a {@link FileCollectionFingerprint} for a {@link org.gradle.api.file.FileCollection} representing a Java classpath. Compared to {@link RelativePathFileCollectionFingerprinter} this fingerprinter orders files within any sub-tree.
     *
     * @see org.gradle.api.tasks.Classpath
     */
    @ServiceScope(Scope.UserHome.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. test/fixedbugs/issue67160.go

    // Test to make sure that we don't try using larger loads for
    // generated equality functions on architectures that can't do
    // unaligned loads.
    
    package main
    
    // T has a big field that wants to be compared with larger loads/stores.
    // T is "special" because of the unnamed field, so it needs a generated equality function.
    // T is an odd number of bytes in size and has alignment 1.
    type T struct {
    	src [8]byte
    	_   byte
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:34:04 UTC 2024
    - 767 bytes
    - Viewed (0)
  6. src/cmd/go/internal/gover/gover.go

    func Compare(x, y string) int {
    	return gover.Compare(x, y)
    }
    
    // Max returns the maximum of x and y interpreted as toolchain versions,
    // compared using Compare.
    // If x and y compare equal, Max returns x.
    func Max(x, y string) string {
    	return gover.Max(x, y)
    }
    
    // IsLang reports whether v denotes the overall Go language version
    // and not a specific release. Starting with the Go 1.21 release, "1.x" denotes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/CollectorTester.java

        T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object> {
      /**
       * Creates a {@code CollectorTester} for the specified {@code Collector}. The result of the {@code
       * Collector} will be compared to the expected value using {@link Object#equals}.
       */
      public static <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
          CollectorTester<T, A, R> of(Collector<T, A, R> collector) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. test/fixedbugs/issue8606b.go

    // bad backing store pointers but nonzero length, so we can check that
    // the backing store never gets compared.
    //
    // We use two different bad strings so that pointer comparisons of
    // backing store pointers fail.
    
    package main
    
    import (
    	"fmt"
    	"reflect"
    	"syscall"
    	"unsafe"
    )
    
    type SI struct {
    	s string
    	i int
    }
    
    type SS struct {
    	s string
    	t string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. pkg/kube/krt/util.go

    // For instance, I can make a transformation from `object => object.name` to only trigger events for changes to the name;
    // the output will be compared (using standard equality checking), and only changes will trigger the handler.
    // Note this is in addition to the normal event mechanics, so this can only filter things further.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. pilot/pkg/networking/util/fuzz_test.go

    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		r := fuzz.Struct[*networking.TrafficPolicy_PortTrafficPolicy](fg)
    
    		// The port does not need to be copied.
    		r.Port = nil
    
    		// The type has changed and cannot be compared directly.
    		// Convert to []byte for comparison.
    		copied := shadowCopyPortTrafficPolicy(r)
    		rjs, _ := json.Marshal(r)
    		cjs, _ := json.Marshal(copied)
    		assert.Equal(fg.T(), rjs, cjs)
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 20:32:49 UTC 2024
    - 1.8K bytes
    - Viewed (1)
Back to top