Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 271 for t0 (0.98 sec)

  1. src/internal/reflectlite/all_test.go

    func TestSetPanic(t *testing.T) {
    	ok := func(f func()) { f() }
    	bad := shouldPanic
    	clear := func(v Value) { v.Set(Zero(v.Type())) }
    
    	type t0 struct {
    		W int
    	}
    
    	type t1 struct {
    		Y int
    		t0
    	}
    
    	type T2 struct {
    		Z       int
    		namedT0 t0
    	}
    
    	type T struct {
    		X int
    		t1
    		T2
    		NamedT1 t1
    		NamedT2 T2
    		namedT1 t1
    		namedT2 T2
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  2. src/go/doc/testdata/d.0.golden

    		Vungrouped = 0
    	)
    
    
    FUNCTIONS
    	// F0 should be first. 
    	func F0()
    
    	// F1 should be second. 
    	func F1()
    
    	// F2 should be third. 
    	func F2()
    
    
    TYPES
    	// T0 should be first. 
    	type T0 struct{}
    
    	// T1 should be second. 
    	type T1 struct{}
    
    	// T2 should be third. 
    	type T2 struct{}
    
    	// TG0 should be first. 
    	type TG0 struct{}
    
    	// TG1 should be second. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.5K bytes
    - Viewed (0)
  3. src/time/mono_test.go

    	if d < 25*Second || 30*Second < d {
    		t.Errorf("Until(Now().Add(-30s)) = %v, want roughly 30s (25s to 30s)", d)
    	}
    
    	t0 := Now()
    	t1 = t0.Add(Duration(1<<63 - 1))
    	if GetMono(&t1) != 0 {
    		t.Errorf("Now().Add(maxDuration) has monotonic clock reading (%v => %v %d %d)", t0.String(), t1.String(), t0.Unix(), t1.Unix())
    	}
    	t2 := t1.Add(-Duration(1<<63 - 1))
    	d = Since(t2)
    	if d < -10*Second || 10*Second < d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 17:10:49 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  4. src/internal/types/testdata/spec/conversions.go

    type (
    	B  int
    	C  int
    	X0 *B
    	T0 *C
    )
    
    func _(x X0) T0           { return T0(x /* ERROR "cannot convert" */) } // non-generic reference
    func _[X X0, T T0](x X) T { return T(x /* ERROR "cannot convert" */) }
    func _[T T0](x X0) T      { return T(x /* ERROR "cannot convert" */) }
    func _[X X0](x X) T0      { return T0(x /* ERROR "cannot convert" */) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue6977.go

    // eliminates duplicate methods early (rather than at the
    // end) to prevent exponential memory and time use.
    // Without early elimination, computing T29 may take dozens
    // of minutes.
    type (
            T0 interface { m() }
            T1 interface { T0; T0 }
            T2 interface { T1; T1 }
            T3 interface { T2; T2 }
            T4 interface { T3; T3 }
            T5 interface { T4; T4 }
            T6 interface { T5; T5 }
            T7 interface { T6; T6 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:04:33 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/time/sleep_test.go

    		<-tmp
    	}
    	<-c
    }
    
    func testReset(d Duration) error {
    	t0 := NewTimer(2 * d)
    	Sleep(d)
    	if !t0.Reset(3 * d) {
    		return errors.New("resetting unfired timer returned false")
    	}
    	Sleep(2 * d)
    	select {
    	case <-t0.C:
    		return errors.New("timer fired early")
    	default:
    	}
    	Sleep(2 * d)
    	select {
    	case <-t0.C:
    	default:
    		return errors.New("reset timer did not fire")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  7. tools/docker-builder/builder/crane.go

    }
    
    func Build(ctx context.Context, b BuildSpec) error {
    	ctx, span := tracing.Start(ctx, "Build")
    	defer span.End()
    	t0 := time.Now()
    	lt := t0
    	trace := func(format string, d ...any) {
    		log.WithLabels("image", b.Name, "total", time.Since(t0), "step", time.Since(lt)).Infof(format, d...)
    		lt = time.Now()
    	}
    	if len(b.Dests) == 0 {
    		return fmt.Errorf("dest required")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 26 01:07:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  8. src/go/doc/testdata/d.2.golden

    		Vungrouped = 0
    	)
    
    
    FUNCTIONS
    	// F0 should be first. 
    	func F0()
    
    	// F1 should be second. 
    	func F1()
    
    	// F2 should be third. 
    	func F2()
    
    
    TYPES
    	// T0 should be first. 
    	type T0 struct{}
    
    	// T1 should be second. 
    	type T1 struct{}
    
    	// T2 should be third. 
    	type T2 struct{}
    
    	// TG0 should be first. 
    	type TG0 struct{}
    
    	// TG1 should be second. 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.5K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/issues0.go

    type (
    	I0 interface{}
    	I1 interface{ foo() }
    	I2 interface{ foo(x int) }
    	T0 struct{}
    	T1 struct{}
    	T2 struct{}
    )
    
    func (*T1) foo() {}
    func (*T2) foo(x int) {}
    
    func issue10260() {
    	var (
    		i0 I0
    		i1 I1
    		i2 I2
    		t0 *T0
    		t1 *T1
    		t2 *T2
    	)
    
    	var x I1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. src/internal/trace/testdata/testprog/annotations-stress.go

    import (
    	"context"
    	"fmt"
    	"log"
    	"os"
    	"runtime/trace"
    	"time"
    )
    
    func main() {
    	baseCtx := context.Background()
    
    	// Create a task that starts and ends entirely outside of the trace.
    	ctx0, t0 := trace.NewTask(baseCtx, "parent")
    
    	// Create a task that starts before the trace and ends during the trace.
    	ctx1, t1 := trace.NewTask(ctx0, "type1")
    
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top