Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 302 for logf (0.05 sec)

  1. src/cmd/internal/buildid/buildid_test.go

    	zero := make([]byte, 8)
    	for i := range id {
    		id[i] = byte(i)
    	}
    	numError := 0
    	errorf := func(msg string, args ...any) {
    		t.Errorf(msg, args...)
    		if numError++; numError > 20 {
    			t.Logf("stopping after too many errors")
    			t.FailNow()
    		}
    	}
    	for bufSize := len(id); bufSize <= len(buf); bufSize++ {
    		for j := range buf {
    			for k := 0; k < 2*len(id) && j+k < len(buf); k++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore_test.go

    package ssa
    
    import (
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    	"testing"
    )
    
    func TestDeadStore(t *testing.T) {
    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	t.Logf("PTRTYPE %v", ptrType)
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("v", OpConstBool, c.config.Types.Bool, 1, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tests/integration/pilot/cni_race_test.go

    			// Temporarily store CNI DaemonSet, which will be deployed again later.
    			t.Log("Delete CNI Daemonset temporarily to simulate race condition")
    			cniDaemonSet := getCNIDaemonSet(t, c)
    			deleteCNIDaemonset(t, c)
    
    			// Rollout restart instances in the echo namespace, and wait for a broken instance.
    			t.Log("Rollout restart echo instance to get a broken instance")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. src/os/exec/dot_test.go

    		executable += ".exe"
    	}
    	if err := os.WriteFile(filepath.Join(tmpDir, executable), []byte{1, 2, 3}, 0777); err != nil {
    		t.Fatal(err)
    	}
    	chdir(t, tmpDir)
    	t.Setenv("PWD", tmpDir)
    	t.Logf(". is %#q", tmpDir)
    
    	origPath := os.Getenv(pathVar)
    
    	// Add "." to PATH so that exec.LookPath looks in the current directory on all systems.
    	// And try to trick it with "../testdir" too.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. tests/integration/security/ca_custom_root/secure_naming_test.go

    	var pluginCert []byte
    	var ok bool
    	if certData, ok = cm.Data[constants.CACertNamespaceConfigMapDataName]; !ok {
    		return fmt.Errorf("CA certificate %v not found", constants.CACertNamespaceConfigMapDataName)
    	}
    	t.Logf("CA certificate %v found", constants.CACertNamespaceConfigMapDataName)
    	if pluginCert, err = cert.ReadSampleCertFromFile("root-cert.pem"); err != nil {
    		return err
    	}
    	if string(pluginCert) != certData {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. pilot/pkg/xds/debug_test.go

    	attempts := 5
    	for i := 0; i < attempts; i++ {
    		gotStatus := getSyncStatus(t, s)
    		var errorHandler func(string, ...any)
    		if i == attempts-1 {
    			errorHandler = t.Errorf
    		} else {
    			errorHandler = t.Logf
    		}
    		for _, ss := range gotStatus {
    			if ss.ProxyID == nodeID {
    				if ss.ProxyVersion == "" {
    					errorHandler("ProxyVersion should always be set for %v", nodeID)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/net/http/export_test.go

    		st, _ := c.getState()
    		states[st] += 1
    	}
    	return states
    }
    
    func (r *Request) WithT(t *testing.T) *Request {
    	return r.WithContext(context.WithValue(r.Context(), tLogKey{}, t.Logf))
    }
    
    func ExportSetH2GoawayTimeout(d time.Duration) (restore func()) {
    	old := http2goAwayTimeout
    	http2goAwayTimeout = d
    	return func() { http2goAwayTimeout = old }
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/net/http/transfer_test.go

    			"0\r\n"+
    			"\r\n")), nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := "Body here\ncontinued"
    	buf := make([]byte, len(want))
    	n, err := res.Body.Read(buf)
    	if n != len(want) || err != io.EOF {
    		t.Logf("body = %#v", res.Body)
    		t.Errorf("Read = %v, %v; want %d, EOF", n, err, len(want))
    	}
    	if string(buf) != want {
    		t.Errorf("buf = %q; want %q", buf, want)
    	}
    }
    
    func TestDetectInMemoryReaders(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top