- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 314 for logf (0.1 sec)
-
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) -
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) -
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) -
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) -
tests/integration/telemetry/api/istioctl_metrics_test.go
if len(lines) != 3 { t.Logf("Expected 2 lines of output, got %q", output) return errors.New("unexpected output (incorrect number of lines)") } fields := strings.Fields(lines[1]) if len(fields) != 6 { t.Logf("Expected 6 columns, got %#v", fields) return errors.New("unexpected output (incorrect number of columns)") } if fields[0] != workload { t.Logf("Expected column 1 to be %q, got %#v", workload, fields)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 2.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/internal/sysinfo/sysinfo_test.go
// license that can be found in the LICENSE file. package sysinfo_test import ( . "internal/sysinfo" "testing" ) func TestCPUName(t *testing.T) { t.Logf("CPUName: %s", CPUName()) t.Logf("osCPUInfoName: %s", XosCPUInfoName())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:42:42 UTC 2024 - 343 bytes - Viewed (0)