Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for o2k2 (0.04 sec)

  1. src/context/x_test.go

    	o0 := otherContext{Background()}
    	check(o0, "o0", "", "", "")
    
    	o1 := otherContext{WithValue(Background(), k1, "c1k1")}
    	check(o1, "o1", "c1k1", "", "")
    
    	o2 := WithValue(o1, k2, "o2k2")
    	check(o2, "o2", "c1k1", "o2k2", "")
    
    	o3 := otherContext{c4}
    	check(o3, "o3", "", "c2k2", "c3k3")
    
    	o4 := WithValue(o3, k3, nil)
    	check(o4, "o4", "", "c2k2", "")
    }
    
    func TestAllocs(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/internal/trace/mud_test.go

    		for j := 0.0; j < mass; j += mass * 0.099 {
    			mud.setTrackMass(j)
    			l, u, ok := mud.approxInvCumulativeSum()
    			inv, ok2 := mud.invCumulativeSum(j)
    			if !ok || !ok2 {
    				t.Fatalf("inverse cumulative sum failed: approx %v, exact %v", ok, ok2)
    			}
    			if !(l <= inv && inv < u) {
    				t.Fatalf("inverse(%g) = %g, not ∈ [%g, %g)", j, inv, l, u)
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. 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)
    			panic("fail")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 726 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/version/helpers.go

    	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 {
    		return 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)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/math_test.go

    		}
    		if ok != test.ok {
    			t.Errorf("%v: unexpected overflow: %t", test, ok)
    		}
    		// addition is commutative
    		d, ok2 := int64Add(test.b, test.a)
    		if c != d || ok != ok2 {
    			t.Errorf("%v: not commutative: %d %t", test, d, ok2)
    		}
    	}
    }
    
    func TestDetectOverflowMultiply(t *testing.T) {
    	for _, test := range []struct {
    		a, b int64
    		c    int64
    		ok   bool
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 20:41:44 UTC 2017
    - 5.1K bytes
    - Viewed (0)
  6. 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)
  7. test/fixedbugs/issue45851.go

    	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)
  8. src/syscall/asm_linux_s390x.s

    	MOVD	a3+24(FP), R4
    	MOVD	$0, R5
    	MOVD	$0, R6
    	MOVD	$0, R7
    	MOVD	trap+0(FP), R1	// syscall entry
    	SYSCALL
    	MOVD	$0xfffffffffffff001, R8
    	CMPUBLT	R2, R8, ok2
    	MOVD	$-1, r1+32(FP)
    	NEG	R2, R2
    	MOVD	R2, err+40(FP)	// errno
    	RET
    ok2:
    	MOVD	R2, r1+32(FP)
    	MOVD	$0, err+40(FP)	// errno
    	RET
    
    // func rawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
    TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:11:15 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. src/syscall/asm_linux_amd64.s

    	MOVQ	$0, R10
    	MOVQ	$0, R8
    	MOVQ	$0, R9
    	MOVQ	trap+0(FP), AX	// syscall entry
    	POPQ	R12 // preserve return address
    	SYSCALL
    	PUSHQ	R12
    	CMPQ	AX, $0xfffffffffffff001
    	JLS	ok2
    	MOVQ	$-1, r1+32(FP)
    	NEGQ	AX
    	MOVQ	AX, err+40(FP)
    	RET
    ok2:
    	MOVQ	AX, r1+32(FP)
    	MOVQ	$0, err+40(FP)
    	RET
    
    // func rawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
    TEXT ·rawSyscallNoError(SB),NOSPLIT,$0-48
    	MOVQ	a1+8(FP), DI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:11:15 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

        }
    
        def 'reports unloadable #type'() {
            given:
            testSources.with {
                testClass('SomeTestClass').with {
                    testMethod('ok1')
                    testMethod('ok2')
                }
            }
            testSourceGenerator.writeAllSources(testSources)
            buildFile << """
                apply plugin: "java"
    
                ${mavenCentralRepository()}
                dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top