Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,275 for logf (0.04 sec)

  1. internal/logger/target/testlogger/testlogger.go

    	tb := t.current.Load()
    	var logf func(format string, args ...any)
    	if tb != nil {
    		tbb := *tb
    		tbb.Helper()
    		switch t.action.Load() {
    		case errorMessage:
    			logf = tbb.Errorf
    		case fatalMessage:
    			logf = tbb.Fatalf
    		default:
    			logf = tbb.Logf
    		}
    	} else {
    		switch t.action.Load() {
    		case errorMessage:
    			logf = func(format string, args ...any) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/encoding/csv/fuzz_test.go

    		buf := new(bytes.Buffer)
    
    		t.Logf("input = %q", in)
    		for _, tt := range []Reader{
    			{Comma: ','},
    			{Comma: ';'},
    			{Comma: '\t'},
    			{Comma: ',', LazyQuotes: true},
    			{Comma: ',', TrimLeadingSpace: true},
    			{Comma: ',', Comment: '#'},
    			{Comma: ',', Comment: ';'},
    		} {
    			t.Logf("With options:")
    			t.Logf("  Comma            = %q", tt.Comma)
    			t.Logf("  LazyQuotes       = %t", tt.LazyQuotes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_regexps.txt

    		b.Logf("LOG: Y running N=%d", b.N)
    	})
    }
    -- z_test.go --
    package x
    
    import "testing"
    
    func TestZ(t *testing.T) {
    	t.Logf("LOG: Z running")
    }
    
    func TestXX(t *testing.T) {
    	t.Logf("LOG: XX running")
    }
    
    func BenchmarkZ(b *testing.B) {
    	b.Logf("LOG: Z running N=%d", b.N)
    }
    
    func BenchmarkXX(b *testing.B) {
    	b.Logf("LOG: XX running N=%d", b.N)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  4. tests/integration/telemetry/util.go

    		}
    		if len(allMismatches) == 0 {
    			t.Logf("no diff found")
    			return
    		}
    		sort.Slice(allMismatches, func(i, j int) bool {
    			return len(allMismatches[i]) < len(allMismatches[j])
    		})
    		t.Logf("query %q returned %v series, but none matched our query exactly.", query.Metric, len(value))
    		t.Logf("Original query: %v", query.String())
    		for i, m := range allMismatches {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 16:30:22 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. src/internal/coverage/cfile/emitdata_test.go

    	}
    	bdir2 := mkdir(t, filepath.Join(dir, "build2"))
    	hargs2 := []string{"-coverpkg=all", "-covermode=" + nonAtomicMode}
    	nonAtomicHarnessPath := buildHarness(t, bdir2, hargs2)
    
    	t.Logf("atomic harness path is %s", atomicHarnessPath)
    	t.Logf("non-atomic harness path is %s", nonAtomicHarnessPath)
    
    	// Sub-tests for each API we want to inspect, plus
    	// extras for error testing.
    	t.Run("emitToDir", func(t *testing.T) {
    		t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. src/runtime/vdso_test.go

    				}
    			}
    		}
    
    		t.Logf("%s -o %s %s", cc, cexe, cfn)
    		cmd = testenv.Command(t, cc, "-o", cexe, cfn)
    		cmd = testenv.CleanCmdEnv(cmd)
    		out, err = cmd.CombinedOutput()
    		if len(out) > 0 {
    			t.Logf("%s", out)
    		}
    		if err != nil {
    			t.Skipf("can't verify VDSO status, C compiled failed: %v", err)
    		}
    
    		t.Logf("%s -f -e clock_gettime %s", strace, cexe)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. test/intrinsic.dir/main.go

    		}
    		if x != Y {
    			logf("Bswap64(0x%08x) expected 0x%08x but got 0x%08x\n", y, x, Y)
    		}
    
    		x32 := uint32(X)
    		y32 := uint32(Y >> 32)
    
    		X32 := T.Bswap32(x32) // ERROR "intrinsic substitution for Bswap32"
    		Y32 := T.Bswap32(y32) // ERROR "intrinsic substitution for Bswap32"
    		if y32 != X32 {
    			logf("Bswap32(0x%08x) expected 0x%08x but got 0x%08x\n", x32, y32, X32)
    		}
    		if x32 != Y32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 18:06:27 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. src/go/doc/testdata/testing.2.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)
  9. src/syscall/syscall_bsd_test.go

    			t.Errorf("index %v is an empty Statfs_t struct", i)
    		}
    	}
    	if t.Failed() {
    		for i, stat := range data[:n2] {
    			t.Logf("data[%v] = %+v", i, stat)
    		}
    		mount, err := exec.Command("mount").CombinedOutput()
    		if err != nil {
    			t.Logf("mount: %v\n%s", err, mount)
    		} else {
    			t.Logf("mount: %s", mount)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	defer remove()
    
    	path := filepath.Join(dir, "lock")
    
    	mu := lockedfile.MutexAt(path)
    	t.Logf("mu := MutexAt(_)")
    
    	unlock, err := mu.Lock()
    	if err != nil {
    		t.Fatalf("mu.Lock: %v", err)
    	}
    	t.Logf("unlock, _  := mu.Lock()")
    
    	mu2 := lockedfile.MutexAt(mu.Path)
    	t.Logf("mu2 := MutexAt(mu.Path)")
    
    	wait := mustBlock(t, "mu2.Lock()", func() {
    		unlock2, err := mu2.Lock()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top