- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 189 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/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) -
cni/test/install_cni.go
t.Helper() t.Logf("Pre-populating working dirs") for i, f := range cniDirOrderedFiles { destFilenm := fmt.Sprintf("0%d-%s", i, f) t.Logf("Copying %v into temp config dir %v/%s", f, tempCNIConfDir, destFilenm) cp(wd+cniConfSubDir+f, tempCNIConfDir+"/"+destFilenm, t) } for _, f := range ls(wd+k8sSvcAcctSubDir, t) { t.Logf("Copying %v into temp k8s serviceaccount dir %v", f, tempK8sSvcAcctDir)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 11.4K 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) -
pkg/kubelet/status/status_manager_test.go
t.Logf("syncBatch should not sync any pods because nothing is changed.") m.testSyncBatch() verifyActions(t, m, []core.Action{}) t.Logf("Change mirror pod identity.") m.podManager.(mutablePodManager).RemovePod(mirrorPod) mirrorPod.UID = "new-mirror-pod" mirrorPod.Status = v1.PodStatus{} m.podManager.(mutablePodManager).AddPod(mirrorPod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 02 16:27:19 UTC 2024 - 68.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go
// considered "printf wrappers"; calls to them are subject to the same // checking. In this example, logf is a printf wrapper: // // func logf(level int, format string, args ...any) { // if enabled(level) { // log.Printf(format, args...) // } // } // // logf(3, "invalid request: %v") // logf format reads arg 1, but call has 0 args // // To enable printf checking on a function that is not found by this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 3.2K bytes - Viewed (0) -
src/syscall/dirent_test.go
// On linux, 'man getdents64' says that EINVAL indicates “result buffer is too small”. // Try a bigger buffer. t.Logf("ReadDirent: %v; retrying with larger buffer", err) buf = bytes.Repeat([]byte{0xCD}, len(buf)*2) continue } if err != nil { t.Fatalf("syscall.readdir: %v", err) } t.Logf("ReadDirent: read %d bytes", n) if n == 0 { break } var consumed, count int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go
return result, fmt.Errorf("failed to set default options: %v", err) } if err := s.Validate(); err != nil { return result, fmt.Errorf("failed to validate options: %v", err) } t.Logf("runtime-config=%v", s.APIEnablement.RuntimeConfig) t.Logf("Starting apiextensions-apiserver on port %d...", s.RecommendedOptions.SecureServing.BindPort) config, err := s.Config() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 9K bytes - Viewed (1) -
src/runtime/crash_test.go
if err == nil { t.Logf("try %d: program exited successfully, should have failed", i+1) continue } if i > 0 { t.Logf("try %d:\n", i+1) } t.Logf("%s\n", got) wants := []string{ "panic: crash", "PanicRace", "created by ", } for _, want := range wants { if !bytes.Contains(got, []byte(want)) { t.Logf("did not find expected string %q", want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/internal/coverage/cfile/ts_test.go
// running "go test -cover" for this package). func TestTestSupport(t *testing.T) { if !goexperiment.CoverageRedesign { return } if testing.CoverMode() == "" { return } tgcd := testGoCoverDir(t) t.Logf("testing.testGoCoverDir() returns %s mode=%s\n", tgcd, testing.CoverMode()) textfile := filepath.Join(t.TempDir(), "file.txt") var sb strings.Builder err := ProcessCoverTestDir(tgcd, textfile,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 5.2K bytes - Viewed (0)