Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 602 for _logf (0.05 sec)

  1. src/math/big/alias_test.go

    	// Test aliasing the first argument and the receiver.
    	v1.Set(x)
    	if out := f(v1, v1, y); out != v1 || !equal(v1, v) {
    		t.Logf("f(v, x, y) != f(x, x, y)")
    		return false
    	}
    	// Test aliasing the second argument and the receiver.
    	v1.Set(y)
    	if out := f(v1, x, v1); out != v1 || !equal(v1, v) {
    		t.Logf("f(v, x, y) != f(y, x, y)")
    		return false
    	}
    
    	// Calculate a reference f(y, y) without aliasing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  2. src/cmd/pprof/pprof_test.go

    		// Try to print out profile content for debugging.
    		cmd = testenv.Command(t, pprofPath(t), "-raw", cpuExe, profile)
    		out, err = cmd.CombinedOutput()
    		if err != nil {
    			t.Logf("pprof -raw failed: %v\n%s", err, out)
    		} else {
    			t.Logf("profile content:\n%s", out)
    		}
    		return
    	}
    
    	sout := string(out)
    	want := "ROUTINE ======================== main.main"
    	if !strings.Contains(sout, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/internal/moddeps/moddeps_test.go

    		// This short test does NOT ensure that the vendored contents match
    		// the unmodified contents of the corresponding dependency versions.
    		t.Run(m.Path+"(quick)", func(t *testing.T) {
    			t.Logf("module %s in directory %s", m.Path, m.Dir)
    
    			if m.hasVendor {
    				// Load all of the packages in the module to ensure that their
    				// dependencies are vendored. If any imported package is missing,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    	}
    	pause := ms.PauseNs[(ms.NumGC+255)%256]
    	// Due to timer granularity, pause can actually be 0 on windows
    	// or on virtualized environments.
    	if pause == 0 {
    		t.Logf("last GC pause was 0")
    	} else if pause > 10e9 {
    		t.Logf("bad last GC pause: got %v, want [0, 10e9]", pause)
    	}
    }
    
    var hugeSink any
    
    func TestHugeGCInfo(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/os/timeout_test.go

    					if !isDeadlineExceeded(err) {
    						t.Logf("good client timeout after %v, reading %d bytes", res.d, res.n)
    					} else {
    						t.Fatalf("client Copy = %d, %v; want timeout", res.n, res.err)
    					}
    				case <-max.C:
    					t.Fatalf("timeout (%v) waiting for client to timeout (%v) reading", tooLong, timeout)
    				}
    
    				select {
    				case res := <-pasvch:
    					t.Logf("writer in %v wrote %d: %v", res.d, res.n, res.err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  6. src/internal/zstd/fuzz_test.go

    			if c > len(zstdExp) {
    				c = len(zstdExp)
    			}
    			goExp = goExp[:c]
    			zstdExp = zstdExp[:c]
    			if !bytes.Equal(goExp, zstdExp) {
    				t.Error("byte mismatch after error")
    				t.Logf("Go error: %v\n", goErr)
    				t.Logf("zstd error: %v\n", zstdErr)
    				showDiffs(t, zstdExp, goExp)
    			}
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fail_fast.txt

    package failfast
    
    import "testing"
    
    func TestA(t *testing.T) {
    	// Edge-case testing, mixing unparallel tests too
    	t.Logf("LOG: %s", t.Name())
    }
    
    func TestFailingA(t *testing.T) {
    	t.Errorf("FAIL - %s", t.Name())
    }
    
    func TestB(t *testing.T) {
    	// Edge-case testing, mixing unparallel tests too
    	t.Logf("LOG: %s", t.Name())
    }
    
    func TestParallelFailingA(t *testing.T) {
    	t.Parallel()
    	t.Errorf("FAIL - %s", t.Name())
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. pkg/test/failer.go

    // substitute for testing.TB, which cannot be implemented outside of the testing
    // package.
    type Failer interface {
    	Fail()
    	FailNow()
    	Fatal(args ...any)
    	Fatalf(format string, args ...any)
    	Log(args ...any)
    	Logf(format string, args ...any)
    	TempDir() string
    	Helper()
    	Cleanup(func())
    	Skip(args ...any)
    }
    
    // Fuzzer abstracts *testing.F
    type Fuzzer interface {
    	Fuzz(ff any)
    	Add(args ...any)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jul 15 23:58:50 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/execarchive.go

    	var err error
    	argv0 := argv[0]
    	if filepath.Base(argv0) == argv0 {
    		argv0, err = exec.LookPath(argv0)
    		if err != nil {
    			Exitf("cannot find %s: %v", argv[0], err)
    		}
    	}
    	if ctxt.Debugvlog != 0 {
    		ctxt.Logf("invoking archiver with syscall.Exec()\n")
    	}
    	err = syscall.Exec(argv0, argv, os.Environ())
    	if err != nil {
    		Exitf("running %s failed: %v", argv[0], err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 876 bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof_test.go

    			bad := avoidSamples[i]
    			if bad != 0 {
    				t.Logf("found %d samples in avoid-function %s\n", bad, name)
    				ok = false
    			}
    		}
    
    		if len(need) == 0 {
    			return
    		}
    
    		var total uintptr
    		for i, name := range need {
    			total += have[i]
    			t.Logf("found %d samples in expected function %s\n", have[i], name)
    		}
    		if total == 0 {
    			t.Logf("no samples in expected functions")
    			ok = false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top