Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 391 for logf (0.06 sec)

  1. pilot/pkg/xds/cds_test.go

    			for i := 0; i < 2; i++ {
    				clusters := s.Clusters(s.SetupProxy(&model.Proxy{ConfigNamespace: "test"}))
    				assertSANs(t, clusters, "outbound|80||example.default.svc.cluster.local", tt.sans)
    				t.Logf("iteration %d passed", i)
    			}
    		})
    	}
    }
    
    func TestServiceEntryMerge(t *testing.T) {
    	// Regression test for https://github.com/istio/istio/issues/50478
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 02:06:39 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. src/log/slog/value_test.go

    // unsafe: 690 ns/op, 0 allocs
    
    // Run this with and without -tags unsafe_kvs to compare.
    func BenchmarkUnsafeStrings(b *testing.B) {
    	b.ReportAllocs()
    	dst := make([]Value, 100)
    	src := make([]Value, len(dst))
    	b.Logf("Value size = %d", unsafe.Sizeof(Value{}))
    	for i := range src {
    		src[i] = StringValue(fmt.Sprintf("string#%d", i))
    	}
    	b.ResetTimer()
    	var d string
    	for i := 0; i < b.N; i++ {
    		copy(dst, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/runtime/traceback_system_test.go

    	}
    	cmd := testenv.Command(t, exe)
    	cmd.Env = append(cmd.Environ(), entrypointVar+"=crash")
    	var stdout, stderr bytes.Buffer
    	cmd.Stdout = &stdout
    	cmd.Stderr = &stderr
    	cmd.Run() // expected to crash
    	t.Logf("stderr:\n%s\nstdout: %s\n", stderr.Bytes(), stdout.Bytes())
    	crash := stdout.String()
    
    	// If the only line is the sentinel, it wasn't a crash.
    	if strings.Count(crash, "\n") < 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/certs/certlist_test.go

    		"leaf0": leaf0,
    	}
    
    	if _, err := orphanCertMap.CertTree(); err == nil {
    		t.Error("expected orphan cert map to error, but got nil")
    	}
    
    	certTree, err := certMap.CertTree()
    	t.Logf("cert tree: %v", certTree)
    	if err != nil {
    		t.Errorf("expected no error, but got %v", err)
    	}
    
    	if len(certTree) != 2 {
    		t.Errorf("Expected tree to have 2 roots, got %d", len(certTree))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/testing/testing.go

    	c.log(fmt.Sprintf(format, args...))
    }
    
    // Error is equivalent to Log followed by Fail.
    func (c *common) Error(args ...any) {
    	c.checkFuzzFn("Error")
    	c.log(fmt.Sprintln(args...))
    	c.Fail()
    }
    
    // Errorf is equivalent to Logf followed by Fail.
    func (c *common) Errorf(format string, args ...any) {
    	c.checkFuzzFn("Errorf")
    	c.log(fmt.Sprintf(format, args...))
    	c.Fail()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	}
    }
    
    // tLogKey is a context WithValue key for test debugging contexts containing
    // a t.Logf func. See export_test.go's Request.WithT method.
    type tLogKey struct{}
    
    func (tr *transportRequest) logf(format string, args ...any) {
    	if logf, ok := tr.Request.Context().Value(tLogKey{}).(func(string, ...any)); ok {
    		logf(time.Now().Format(time.RFC3339Nano)+": "+format, args...)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. src/net/http/server.go

    }
    
    func (s *Server) logf(format string, args ...any) {
    	if s.ErrorLog != nil {
    		s.ErrorLog.Printf(format, args...)
    	} else {
    		log.Printf(format, args...)
    	}
    }
    
    // logf prints to the ErrorLog of the *Server associated with request r
    // via ServerContextKey. If there's no associated server, or if ErrorLog
    // is nil, logging is done via the log package's standard logger.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/value.go

    		if a.Type.IsMemory() {
    			v.Fatalf("can't move a value with a memory arg %s", v.LongString())
    		}
    	}
    	return c
    }
    
    func (v *Value) Logf(msg string, args ...interface{}) { v.Block.Logf(msg, args...) }
    func (v *Value) Log() bool                            { return v.Block.Log() }
    func (v *Value) Fatalf(msg string, args ...interface{}) {
    	v.Block.Func.fe.Fatalf(v.Pos, msg, args...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  9. pkg/volume/csi/csi_plugin_test.go

    			endpoint:   "/var/log/kubelet/plugins_registry/myplugin/csi.sock",
    			versions:   []string{"0.2.0"},
    			shouldFail: true,
    		},
    		{
    			pluginName: "test.plugin",
    			endpoint:   "/var/log/kubelet/plugins_registry/myplugin/csi.sock",
    			versions:   []string{"0.2.0", "v0.3.0"},
    			shouldFail: true,
    		},
    		{
    			pluginName: "test.plugin",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. src/net/lookup_windows_test.go

    				testenv.SkipFlaky(t, 38111)
    			}
    			t.Errorf("failed %s: %s", addr, err)
    		}
    		if len(names) == 0 {
    			t.Errorf("no results")
    		}
    		expected, err := lookupPTR(addr)
    		if err != nil {
    			t.Logf("skipping failed lookup %s test: %s", addr, err)
    			continue
    		}
    		slices.Sort(expected)
    		slices.Sort(names)
    		if !reflect.DeepEqual(expected, names) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top