Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 426 for logf (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tests/integration/security/fuzz/fuzz_test.go

    		t.Fatalf("Wait for pod %s failed: %v", name, err)
    	}
    	t.Logf("deploy %s is ready", name)
    }
    
    func waitService(t framework.TestContext, name, ns string) {
    	if _, _, err := kube.WaitUntilServiceEndpointsAreReady(t.Clusters().Default().Kube(), ns, name); err != nil {
    		t.Fatalf("Wait for service %s failed: %v", name, err)
    	}
    	t.Logf("service %s is ready", name)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    // counterpart:
    //
    //	log.Print("%d", 123) // log.Print call has possible formatting directive %d
    //
    // # Inferred printf wrappers
    //
    // Functions that delegate their arguments to fmt.Printf are
    // 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) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top