- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for Gooer2 (0.19 sec)
-
test/fixedbugs/issue29612.dir/p1/ssa/ssa.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 01 17:27:06 UTC 2019 - 320 bytes - Viewed (0) -
test/typeparam/issue51522b.go
switch t { case i: // ok default: println("FAIL: switch t") } } type myint int func (m myint) foo() { } type fooer interface { foo() } type comparableFoo interface { comparable foo() } func g[T comparableFoo](i fooer) { var t T switch i { case t: // ok default: println("FAIL: switch i") } switch t { case i: // ok default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 19:30:33 UTC 2022 - 730 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue47887.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type Fooer[t any] interface { foo(Barer[t]) } type Barer[t any] interface { bar(Bazer[t]) } type Bazer[t any] interface { Fooer[t] baz(t) } type Int int func (n Int) baz(int) {} func (n Int) foo(b Barer[int]) { b.bar(n) } type F[t any] interface { f(G[t]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 554 bytes - Viewed (0) -
test/typeparam/typeswitch5.go
func (x myint) foo() int {return int(x)} type myfloat float64 func (x myfloat) foo() float64 {return float64(x) } func f[T any](i interface{}) { switch x := i.(type) { case interface { foo() T }: println("fooer", x.foo()) default: println("other") } } func main() { f[int](myint(6)) f[int](myfloat(7)) f[float64](myint(8)) f[float64](myfloat(9))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 559 bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
cronJob: &batchv1.CronJob{ObjectMeta: metav1.ObjectMeta{Namespace: "foo-ns", Name: "fooer"}}, jobs: []runtime.Object{ &batchv1.Job{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "foo-ns"}}, &batchv1.Job{ObjectMeta: metav1.ObjectMeta{Name: "foo1", Namespace: "foo-ns", OwnerReferences: []metav1.OwnerReference{{Name: "fooer", Controller: &trueRef}}}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
test/escape2n.go
var u, v, w int // ERROR "moved to heap: u$" "moved to heap: v$" "moved to heap: w$" defer noop(tee(&u)) defer noop(&v, &w) } } type Fooer interface { Foo() } type LimitedFooer struct { Fooer N int64 } func LimitFooer(r Fooer, n int64) Fooer { // ERROR "leaking param: r$" return &LimitedFooer{r, n} // ERROR "&LimitedFooer{...} escapes to heap$" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2.go
var u, v, w int // ERROR "moved to heap: u$" "moved to heap: v$" "moved to heap: w$" defer noop(tee(&u)) defer noop(&v, &w) } } type Fooer interface { Foo() } type LimitedFooer struct { Fooer N int64 } func LimitFooer(r Fooer, n int64) Fooer { // ERROR "leaking param: r$" return &LimitedFooer{r, n} // ERROR "&LimitedFooer{...} escapes to heap$" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
coverVar := fmt.Sprintf("goCover_%x_", sum[:6]) mode := a.Package.Internal.Cover.Mode if mode == "" { panic("covermode should be set at this point") } if newoutfiles, err := b.cover2(a, infiles, outfiles, coverVar, mode); err != nil { return err } else { outfiles = newoutfiles gofiles = append([]string{newoutfiles[0]}, gofiles...) } } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/testing/testing.go
// values are "set", "count", or "atomic". The return value will be // empty if test coverage is not enabled. func CoverMode() string { if goexperiment.CoverageRedesign { return cover2.mode } return cover.Mode } // Verbose reports whether the -test.v flag is set. func Verbose() bool { // Same as in Short. if !flag.Parsed() { panic("testing: Verbose called before Parse")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)