- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 207 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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)