Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 218 for S1 (0.1 sec)

  1. test/typeparam/ordered.go

    	s1 := make([]Elem, len(s))
    	copy(s1, s)
    	s2 := make([]Elem, len(s))
    	copy(s2, s)
    	_OrderedSlice(s1)
    	sorter(s2)
    	ok := true
    	if !sliceEq(s1, s2) {
    		fmt.Printf("%s: got %v, want %v", name, s1, s2)
    		ok = false
    	}
    	for i := len(s1) - 1; i > 0; i-- {
    		if s1[i] < s1[i-1] {
    			fmt.Printf("%s: element %d (%v) < element %d (%v)", name, i, s1[i], i-1, s1[i-1])
    			ok = false
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. test/fixedbugs/bug253.go

    // license that can be found in the LICENSE file.
    
    package main
    
    type S1 struct {
    	i int
    }
    type S2 struct {
    	i int
    }
    type S3 struct {
    	S1
    	S2
    }
    type S4 struct {
    	S3
    	S1
    }
    
    func main() {
    	var s4 S4
    	if s4.i != 0 { // .i refers to s4.S1.i, unambiguously
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 390 bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultProviderFactoryTest.groovy

            def black = withValues("black")
            def cat = withValues("cat")
    
            when:
            def zipped = providerFactory.zip(
                    providerFactory.zip(big, black) { s1, s2 -> "$s1 $s2" } ,
                    cat) { s1, s2 -> "${s1.capitalize()} ${s2}"}
    
            then:
            zipped instanceof Provider
            zipped.get() == 'Big black cat'
        }
    
        def "can zip two providers and use null to remove the value"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int hashString_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2, S3, S4);
        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

        private static int compareStrings(String s1, String s2) {
            if (s1 == null && s2 == null) {
                return 0;
            }
    
            if (s1 == null /* && s2 != null */) {
                return -1;
            }
    
            if (
            /* s1 != null && */ s2 == null) {
                return 1;
            }
    
            return s1.compareTo(s2);
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. pkg/kubelet/secret/secret_manager_test.go

    	}
    
    	// Create a pod with some secrets.
    	s1 := secretsToAttach{
    		imagePullSecretNames: []string{"s1"},
    		containerEnvSecrets: []envSecrets{
    			{envVarNames: []string{"s1"}},
    			{envVarNames: []string{"s2"}},
    			{envFromNames: []string{"s20"}},
    		},
    	}
    	manager.RegisterPod(podWithSecrets("ns1", "name1", s1))
    	// Update the pod with a different secrets.
    	s2 := secretsToAttach{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  7. src/runtime/libfuzzer.go

    //  2. s1: first string used in the comparison
    //  3. s2: second string used in the comparison
    //  4. result: an integer representing the comparison result. 0 indicates
    //     equality (comparison will ignored by libfuzzer), non-zero indicates a
    //     difference (comparison will be taken into consideration).
    //
    //go:nosplit
    func libfuzzerHookStrCmp(s1, s2 string, fakePC int) {
    	if s1 != s2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 23 01:12:02 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. test/fixedbugs/bug284.go

    	a2 = A2(a1) // ERROR "cannot|invalid"
    	a2 = a2
    
    	type S1 struct {
    		x int
    	}
    	type S2 struct {
    		x NewInt
    	}
    	var s0 struct {
    		x int
    	}
    	var s1 S1
    	var s2 S2
    	s0 = s0
    	s0 = s1
    	s0 = struct {
    		x int
    	}(s2) // ERROR "cannot|invalid"
    	s1 = s0
    	s1 = s1
    	s1 = S1(s2) // ERROR "cannot|invalid"
    	s2 = S2(s0) // ERROR "cannot|invalid"
    	s2 = S2(s1) // ERROR "cannot|invalid"
    	s2 = s2
    
    	type P1 *int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 3.5K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/decls3.go

    	_ = struct{}{}.Foo /* ERROR "no field or method" */
    	_ = S0{}.A
    	_ = S0{}.D /* ERROR "no field or method" */
    	_ = S1{}.A
    	_ = S1{}.B
    	_ = S1{}.S0
    	_ = S1{}.C
    	_ = S2{}.A
    	_ = S2{}.S1
    	_ = S2{}.B
    	_ = S2{}.C
    	_ = S2{}.D /* ERROR "no field or method" */
    	_ = S3{}.S1 /* ERROR "ambiguous selector S3{}.S1" */
    	_ = S3{}.A
    	_ = S3{}.B /* ERROR "ambiguous selector S3{}.B" */
    	_ = S3{}.D
    	_ = S3{}.E
    	_ = S4{}.A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. pkg/test/framework/tools/featuresgen/cmd/root_test.go

    	m := make(map[any]any)
    
    	err := yaml.Unmarshal([]byte(testYaml), &m)
    	if err != nil {
    		t.Errorf(err.Error())
    	}
    
    	s1 := readVal(m, make([]string, 0))
    
    	sort.Strings(s1)
    
    	if strings.Join(s1, "\n") != expectedResult {
    		t.Errorf("Expected '%s' got '%s'", expectedResult, strings.Join(s1, "\n"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top