Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for ok1 (0.94 sec)

  1. test/fixedbugs/bug201.go

    	{
    		var i interface{} = new(T1)
    		_, ok1 := i.(*T1)
    		_, ok2 := i.(*T2)
    		_, ok3 := i.(*T3)
    		if !ok1 || ok2 || ok3 {
    			println("*T1", ok1, ok2, ok3)
    			panic("fail")
    		}
    	}
    	{
    		var i interface{} = MyInt(0)
    		_, ok1 := i.(interface {
    			m(*T1)
    		})
    		_, ok2 := i.(interface {
    			m(*T2)
    		})
    		_, ok3 := i.(interface {
    			m(*T3)
    		})
    		if !ok1 || ok2 || ok3 {
    			println("T", ok1, ok2, ok3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 726 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/version/helpers.go

    func CompareKubeAwareVersionStrings(v1, v2 string) int {
    	if v1 == v2 {
    		return 0
    	}
    	v1major, v1type, v1minor, ok1 := parseKubeVersion(v1)
    	v2major, v2type, v2minor, ok2 := parseKubeVersion(v2)
    	switch {
    	case !ok1 && !ok2:
    		return strings.Compare(v2, v1)
    	case !ok1 && ok2:
    		return -1
    	case ok1 && !ok2:
    		return 1
    	}
    	if v1type != v2type {
    		return int(v1type) - int(v2type)
    	}
    	if v1major != v2major {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 20 08:40:04 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  3. test/fixedbugs/issue52856.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func F() any {
    	return struct{ int }{0}
    }
    
    func main() {
    	_, ok1 := F().(struct{ int })
    	_, ok2 := a.F().(struct{ int })
    	if !ok1 || ok2 {
    		panic(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:26:59 UTC 2022
    - 343 bytes
    - Viewed (0)
  4. src/net/port_unix.go

    			continue
    		}
    		portnet := f[1] // "80/tcp"
    		port, j, ok := dtoi(portnet)
    		if !ok || port <= 0 || j >= len(portnet) || portnet[j] != '/' {
    			continue
    		}
    		netw := portnet[j+1:] // "tcp"
    		m, ok1 := services[netw]
    		if !ok1 {
    			m = make(map[string]int)
    			services[netw] = m
    		}
    		for i := 0; i < len(f); i++ {
    			if i != 1 { // f[1] was port/net
    				m[f[i]] = port
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. test/initializerr.go

    var a5 = []byte{x: 2}                           // ERROR "index"
    var a6 = []byte{1: 1, 2: 2, 1: 3}               // ERROR "duplicate"
    
    var ok1 = S{}       // should be ok
    var ok2 = T{S: ok1} // should be ok
    
    // These keys can be computed at compile time but they are
    // not constants as defined by the spec, so they do not trigger
    // compile-time errors about duplicate key values.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. test/fixedbugs/issue45851.go

    //go:noinline
    func (v *Vertex) IsClosedStruct() bool {
    	return true
    }
    
    func equalVertex(x *Vertex, v Value, flags Flag) bool {
    	y, ok := v.(*Vertex)
    	if !ok {
    		return false
    	}
    	v, ok1 := x.BaseValue.(Value)
    	w, ok2 := y.BaseValue.(Value)
    	if !ok1 && !ok2 {
    		return true // both are struct or list.
    	}
    	return equalTerminal(v, w, flags)
    }
    
    //go:noinline
    func equalTerminal(x Value, y Value, flags Flag) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 03 17:46:12 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

            return !(version in ['4.10', '4.11', '4.12'])
        }
    
        def 'reports unloadable #type'() {
            given:
            testSources.with {
                testClass('SomeTestClass').with {
                    testMethod('ok1')
                    testMethod('ok2')
                }
            }
            testSourceGenerator.writeAllSources(testSources)
            buildFile << """
                apply plugin: "java"
    
                ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. src/syscall/asm_unix_amd64.s

    	RET
    
    TEXT	·RawSyscall(SB),NOSPLIT,$0-56
    	MOVQ	a1+8(FP), DI
    	MOVQ	a2+16(FP), SI
    	MOVQ	a3+24(FP), DX
    	MOVQ	trap+0(FP), AX	// syscall entry
    	SYSCALL
    	JCC	ok1
    	MOVQ	$-1, r1+32(FP)	// r1
    	MOVQ	$0, r2+40(FP)	// r2
    	MOVQ	AX, err+48(FP)	// errno
    	RET
    ok1:
    	MOVQ	AX, r1+32(FP)	// r1
    	MOVQ	DX, r2+40(FP)	// r2
    	MOVQ	$0, err+48(FP)	// errno
    	RET
    
    TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
    	MOVQ	a1+8(FP), DI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:40:39 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. pilot/pkg/model/jwks_resolver.go

    		sort.Slice(oldKeys, func(i, j int) bool {
    			key1, ok1 := oldKeys[i].(map[string]any)
    			key2, ok2 := oldKeys[j].(map[string]any)
    			if ok1 && ok2 {
    				key1Id, kid1Exists := key1["kid"]
    				key2Id, kid2Exists := key2["kid"]
    				if kid1Exists && kid2Exists {
    					key1IdStr, ok1 := key1Id.(string)
    					key2IdStr, ok2 := key2Id.(string)
    					if ok1 && ok2 {
    						return key1IdStr < key2IdStr
    					}
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/math/big/intconv_test.go

    		// 0 are detected
    		tmp.SetInt64(1234567890)
    		n1, ok1 := new(Int).SetString(test.in, test.base)
    		n2, ok2 := tmp.SetString(test.in, test.base)
    		expected := NewInt(test.val)
    		if ok1 != test.ok || ok2 != test.ok {
    			t.Errorf("#%d (input '%s') ok incorrect (should be %t)", i, test.in, test.ok)
    			continue
    		}
    		if !ok1 {
    			if n1 != nil {
    				t.Errorf("#%d (input '%s') n1 != nil", i, test.in)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 22:58:58 UTC 2019
    - 10K bytes
    - Viewed (0)
Back to top