Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 602 for _logf (0.07 sec)

  1. src/net/file_test.go

    	switch runtime.GOOS {
    	case "plan9", "windows", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	for _, tt := range fileConnTests {
    		if !testableNetwork(tt.network) {
    			t.Logf("skipping %s test", tt.network)
    			continue
    		}
    
    		var network, address string
    		switch tt.network {
    		case "udp":
    			c := newLocalPacketListener(t, tt.network)
    			defer c.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue18146.go

    		nproc = 7
    	}
    	if setNproc {
    		var rlim syscall.Rlimit
    		if syscall.Getrlimit(nproc, &rlim) == nil {
    			max := int(rlim.Cur) / (threads + 5)
    			if attempts > max {
    				t.Logf("lowering attempts from %d to %d for RLIMIT_NPROC", attempts, max)
    				attempts = max
    			}
    		}
    	}
    
    	if os.Getenv("test18146") == "exec" {
    		runtime.GOMAXPROCS(1)
    		for n := threads; n > 0; n-- {
    			go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/runtime/importx_test.go

    	Cleanup(func())
    	Error(args ...any)
    	Errorf(format string, args ...any)
    	Fail()
    	FailNow()
    	Failed() bool
    	Fatal(args ...any)
    	Fatalf(format string, args ...any)
    	Helper()
    	Log(args ...any)
    	Logf(format string, args ...any)
    	Name() string
    	Setenv(key, value string)
    	Skip(args ...any)
    	SkipNow()
    	Skipf(format string, args ...any)
    	Skipped() bool
    	TempDir() string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 17:18:27 UTC 2023
    - 763 bytes
    - Viewed (0)
  4. src/cmd/internal/cov/read_test.go

    	path := filepath.Join("testdata", "small.go")
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build",
    		"-o", exepath, "-cover", path)
    	b, err := cmd.CombinedOutput()
    	if len(b) != 0 {
    		t.Logf("## build output:\n%s", b)
    	}
    	if err != nil {
    		t.Fatalf("build error: %v", err)
    	}
    
    	// Run to produce coverage data. Note the large argument; we need a large
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. pkg/controller/deployment/rolling_test.go

    			oldReplicas:         2,
    			newReplicas:         11,
    			scaleExpected:       true,
    			expectedNewReplicas: 10,
    		},
    	}
    
    	for i := range tests {
    		test := tests[i]
    		t.Logf("executing scenario %d", i)
    		newRS := rs("foo-v2", test.newReplicas, nil, noTimestamp)
    		oldRS := rs("foo-v2", test.oldReplicas, nil, noTimestamp)
    		allRSs := []*apps.ReplicaSet{newRS, oldRS}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_chatty_fail.txt

    import (
    	"testing"
    	"fmt"
    )
    
    func TestChatty(t *testing.T) {
        for i := 0; i < 3; i++ {
            t.Run(fmt.Sprintf("sub-%d", i), func(t *testing.T) {
                for j := 0; j < 2; j++ {
                    t.Logf("this is sub-%d", i)
                }
                t.Errorf("error from sub-%d", i)
            })
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 21 18:28:05 UTC 2020
    - 719 bytes
    - Viewed (0)
  7. src/os/executable_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, src).CombinedOutput()
    	t.Logf("build output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	out, err = testenv.Command(t, exe).CombinedOutput()
    	t.Logf("exec output:\n%s", out)
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    const testExecutableDeletion = `package main
    
    import (
    	"fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/go/doc/comment/wrap_test.go

    	"unicode/utf8"
    )
    
    var wrapSeed = flag.Int64("wrapseed", 0, "use `seed` for wrap test (default auto-seeds)")
    
    func TestWrap(t *testing.T) {
    	if *wrapSeed == 0 {
    		*wrapSeed = time.Now().UnixNano()
    	}
    	t.Logf("-wrapseed=%#x\n", *wrapSeed)
    	r := rand.New(rand.NewSource(*wrapSeed))
    
    	// Generate words of random length.
    	s := "1234567890αβcdefghijklmnopqrstuvwxyz"
    	sN := utf8.RuneCountInString(s)
    	var words []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  9. src/net/platform_test.go

    	// fully implemented yet on Plan 9 and Windows.
    	switch runtime.GOOS {
    	case "windows", "js", "wasip1":
    		if network == "file+net" {
    			t.Logf(format, args...)
    			return
    		}
    	case "plan9":
    		t.Logf(format, args...)
    		return
    	}
    	t.Fatalf(format, args...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/net/http/transport_test.go

    		GetConn:      func(hostPort string) { t.Logf("GetConn(%q)", hostPort) },
    		GotConn:      func(ci httptrace.GotConnInfo) { t.Logf("GotConn(%+v)", ci) },
    		PutIdleConn:  func(err error) { t.Logf("PutIdleConn(%v)", err) },
    		ConnectStart: func(network, addr string) { t.Logf("ConnectStart(%q, %q)", network, addr) },
    		ConnectDone:  func(network, addr string, err error) { t.Logf("ConnectDone(%q, %q, %v)", network, addr, err) },
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top