- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 602 for _logf (0.04 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/cmd/go/testdata/script/test_regexps.txt
import "testing" func TestX(t *testing.T) { t.Logf("LOG: X running") t.Run("Y", func(t *testing.T) { t.Logf("LOG: Y running") }) } func BenchmarkX(b *testing.B) { b.Logf("LOG: X running N=%d", b.N) b.Run("Y", func(b *testing.B) { 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") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 1.9K 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/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) -
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) -
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) -
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/link/elf_test.go
cc, cflags := getCCAndCCFLAGS(t, env) asmObj := filepath.Join(dir, "x.o") t.Logf("%s %v -c -o %s %s", cc, cflags, asmObj, asmFile) if out, err := testenv.Command(t, cc, append(cflags, "-c", "-o", asmObj, asmFile)...).CombinedOutput(); err != nil { t.Logf("%s", out) t.Fatal(err) } asm2Obj := filepath.Join(dir, "x2.syso") t.Logf("%s --rename-section .text2=.text1 %s %s", objcopy, asmObj, asm2Obj)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 16:34:01 UTC 2023 - 13.7K bytes - Viewed (0) -
src/go/doc/testdata/testing.2.golden
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)