Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 577 for logf (0.7 sec)

  1. src/net/net_fake_test.go

    		if err != nil {
    			t.Fatalf("unexpected error from Dial with %v connections: %v", len(dialed), err)
    		}
    		dialed = append(dialed, c)
    		if testing.Verbose() && len(dialed)%(1<<12) == 0 {
    			t.Logf("dialed %d connections", len(dialed))
    		}
    	}
    	t.Logf("dialed %d connections", len(dialed))
    
    	// Now that all of the ports are in use, dialing another should fail due
    	// to port exhaustion, which (for POSIX-like socket APIs) should return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/go/doc/testdata/testing.1.golden

    	func (c *B) Failed() bool
    
    	// Fatal is equivalent to Log() followed by FailNow(). 
    	func (c *B) Fatal(args ...any)
    
    	// Fatalf is equivalent to Logf() followed by FailNow(). 
    	func (c *B) Fatalf(format string, args ...any)
    
    	// Log formats its arguments using default formatting, analogous ...
    	func (c *B) Log(args ...any)
    
    	// Logf formats its arguments according to the format, analogous ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go

    	b, err := httputil.DumpRequest(req, false)
    	if err != nil {
    		h.t.Logf("Failed to dump request, host=%s: %v", req.Host, err)
    	} else {
    		h.t.Logf("Proxy Request: %s", string(b))
    	}
    
    	if req.Method != http.MethodConnect {
    		h.httpProxy.ServeHTTP(rw, req)
    		return
    	}
    
    	// CONNECT proxy
    
    	sconn, err := net.Dial("tcp", req.Host)
    	if err != nil {
    		h.t.Logf("Failed to dial proxy backend, host=%s: %v", req.Host, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 20 14:58:46 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/lockedfile/internal/filelock/filelock_test.go

    	t.Helper()
    	err := filelock.Lock(f)
    	t.Logf("Lock(fd %d) = %v", f.Fd(), err)
    	if err != nil {
    		t.Fail()
    	}
    }
    
    func rLock(t *testing.T, f *os.File) {
    	t.Helper()
    	err := filelock.RLock(f)
    	t.Logf("RLock(fd %d) = %v", f.Fd(), err)
    	if err != nil {
    		t.Fail()
    	}
    }
    
    func unlock(t *testing.T, f *os.File) {
    	t.Helper()
    	err := filelock.Unlock(f)
    	t.Logf("Unlock(fd %d) = %v", f.Fd(), err)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/internal/testenv/testenv_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	wantInfo, err := os.Stat(absWant)
    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("found go tool at %q (%q)", relWant, absWant)
    
    	goTool, err := testenv.GoTool()
    	if err != nil {
    		t.Fatalf("testenv.GoTool(): %v", err)
    	}
    	t.Logf("testenv.GoTool() = %q", goTool)
    
    	gotInfo, err := os.Stat(goTool)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. src/go/doc/testdata/testing.0.golden

    	// Fatal is equivalent to Log() followed by FailNow(). 
    	func (c *B) Fatal(args ...any)
    
    	// Fatalf is equivalent to Logf() followed by FailNow(). 
    	func (c *B) Fatalf(format string, args ...any)
    
    	// Log formats its arguments using default formatting, analogous ...
    	func (c *B) Log(args ...any)
    
    	// Logf formats its arguments according to the format, analogous ...
    	func (c *B) Logf(format string, args ...any)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  7. src/cmd/go/help_test.go

    	}
    	diff := diff.Diff(srcPath, old, "go help documentation | gofmt", alldocs)
    	if diff == nil {
    		t.Logf("%s is up to date.", srcPath)
    		return
    	}
    
    	if *fixDocs {
    		if err := os.WriteFile(srcPath, alldocs, 0666); err != nil {
    			t.Fatal(err)
    		}
    		t.Logf("wrote %d bytes to %s", len(alldocs), srcPath)
    	} else {
    		t.Logf("\n%s", diff)
    		t.Errorf("%s is stale. To update, run 'go generate cmd/go'.", srcPath)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 28 15:45:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testfortran/fortran_test.go

    	}
    
    	// Finally, run the actual test.
    	t.Log("go", "run", "./testdata/testprog")
    	var stdout, stderr strings.Builder
    	cmd := exec.Command("go", "run", "./testdata/testprog")
    	cmd.Stdout = &stdout
    	cmd.Stderr = &stderr
    	err := cmd.Run()
    	t.Logf("%v", cmd)
    	if stderr.Len() != 0 {
    		t.Logf("stderr:\n%s", stderr.String())
    	}
    	if err != nil {
    		t.Errorf("%v\n%s", err, stdout.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 01:29:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. src/cmd/link/cgo_test.go

    	cmd.Dir = dir
    	cgoCflags += " -flto"
    	cmd.Env = append(cmd.Environ(), "CGO_CFLAGS="+cgoCflags)
    
    	t.Logf("CGO_CFLAGS=%q %v", cgoCflags, cmd)
    	out, err := cmd.CombinedOutput()
    	t.Logf("%s", out)
    
    	if err != nil {
    		t.Logf("go build failed: %v", err)
    
    		// Error messages we've seen indicating that LTO is not supported.
    		// These errors come from GCC or clang, not Go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 09 22:13:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/go/go_unix_test.go

    	if stdout.Len() > 0 {
    		t.Logf("stdout:\n%s", stdout)
    	}
    	err = cmd.Wait()
    
    	ee, _ := err.(*exec.ExitError)
    	if ee == nil {
    		t.Fatalf("unexpectedly finished with nonzero status")
    	}
    	if len(ee.Stderr) > 0 {
    		t.Logf("stderr:\n%s", ee.Stderr)
    	}
    	if !ee.Exited() {
    		t.Fatalf("'go test' did not exit after interrupt: %v", err)
    	}
    
    	t.Logf("interrupted tests without deadlocking")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top