Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for _logf (0.08 sec)

  1. src/bufio/bufio_test.go

    				p := make([]byte, 50)
    				n, err := br.Read(p)
    				if err != wantErr || n != len(s) || string(p[:n]) != s {
    					t.Fatalf("read(%d) = %q, %v, want %q, %v", len(p), string(p[:n]), err, s, wantErr)
    				}
    				t.Logf("read(%d) = %q, %v", len(p), string(p[:n]), err)
    			}
    			want("abc", nil)
    			want("", nil)
    			want("def", nil)
    			want("", io.EOF)
    		})
    	}
    }
    
    func TestReaderReset(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    	}))
    	defer frontendProxy.Close()
    
    	if _, err = frontendProxy.Client().Get(frontendProxy.URL); err == nil {
    		t.Fatalf("want non-nil error")
    	}
    	// The race detector complains about the proxyLog usage in logf in copyBuffer
    	// and our usage below with proxyLog.Bytes() so we're explicitly using a
    	// channel to ensure that the ReverseProxy's ServeHTTP is done before we
    	// continue after Get.
    	<-donec
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. pkg/proxy/endpointschangetracker_test.go

    		return a.endpoint == b.endpoint && a.isLocal == b.isLocal && a.ready == b.ready && a.serving == b.serving && a.terminating == b.terminating
    	}
    	for x := range expected {
    		if len(newMap[x]) != len(expected[x]) {
    			t.Logf("Endpoints %+v", newMap[x])
    			t.Fatalf("expected %d endpoints for %v, got %d", len(expected[x]), x, len(newMap[x]))
    		} else {
    			for i := range expected[x] {
    				newEp, ok := newMap[x][i].(*BaseEndpointInfo)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 21 14:44:08 UTC 2023
    - 79.9K bytes
    - Viewed (0)
  4. src/math/rand/v2/chacha8_test.go

    			}
    			if err := p.UnmarshalBinary(out); err != nil {
    				t.Fatal(err)
    			}
    		}
    		buf := make([]byte, IntN(100))
    		if n+len(buf) > chacha8outlen {
    			buf = buf[:chacha8outlen-n]
    		}
    		n += len(buf)
    		t.Logf("reading %d bytes", len(buf))
    		if nn, err := p.Read(buf); err != nil {
    			t.Fatal(err)
    		} else if nn != len(buf) {
    			t.Errorf("Read short: got %d, expected %d", nn, len(buf))
    		}
    		h.Write(buf)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 55K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/sidecar_simulation_test.go

    				return strings.HasPrefix(c.Name, "inbound")
    			})
    			if len(s.PushContext().ProxyStatus) != 0 {
    				// TODO make this fatal, once inbound conflict is silenced
    				t.Logf("got unexpected error: %+v", s.PushContext().ProxyStatus)
    			}
    			cmap := xdstest.ExtractClusters(clusters)
    			got := xdstest.MapKeys(cmap)
    
    			// Check we have all expected clusters
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  6. src/cmd/internal/testdir/testdir_test.go

    // It consists of pairs: full path to source file and its base name.
    func (t test) errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) {
    	defer func() {
    		if testing.Verbose() && err != nil {
    			t.Logf("gc output:\n%s", outStr)
    		}
    	}()
    	var errs []error
    	out := splitOutput(outStr, wantAuto)
    
    	// Cut directory name.
    	for i := range out {
    		for j := 0; j < len(fullshort); j += 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. src/net/dnsclient_unix_test.go

    			} else if len(opt.Options) != 0 {
    				t.Errorf("found %d Options, expected none", len(opt.Options))
    			} else {
    				got := int(q.Additionals[0].Header.Class)
    				t.Logf("EDNS packet size == %d", got)
    				if got != maxDNSPacketSize {
    					t.Errorf("EDNS packet size == %d, want %d", got, maxDNSPacketSize)
    				}
    			}
    
    			// Hand back a dummy answer to verify that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/test.go

    	    If d is 0, the timeout is disabled.
    	    The default is 10 minutes (10m).
    
    	-v
    	    Verbose output: log all tests as they are run. Also print all
    	    text from Log and Logf calls even if the test succeeds.
    
    	-vet list
    	    Configure the invocation of "go vet" during "go test"
    	    to use the comma-separated list of vet checks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/riscv/obj.go

    		if p.To.Type == obj.TYPE_REG && p.To.Reg == REGSP && p.Spadj == 0 {
    			f := cursym.Func()
    			if f.FuncFlag&abi.FuncFlagSPWrite == 0 {
    				f.FuncFlag |= abi.FuncFlagSPWrite
    				if ctxt.Debugvlog || !ctxt.IsAsm {
    					ctxt.Logf("auto-SPWRITE: %s %v\n", cursym.Name, p)
    					if !ctxt.IsAsm {
    						ctxt.Diag("invalid auto-SPWRITE in non-assembly")
    						ctxt.DiagFlush()
    						log.Fatalf("bad SPWRITE")
    					}
    				}
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		if gotObj != wantObj {
    			// Print the scope tree of mainScope in case of error.
    			var printScopeTree func(indent string, s *Scope)
    			printScopeTree = func(indent string, s *Scope) {
    				t.Logf("%sscope %s %v-%v = %v",
    					indent,
    					ScopeComment(s),
    					s.Pos(),
    					s.End(),
    					s.Names())
    				for i := range s.NumChildren() {
    					printScopeTree(indent+"  ", s.Child(i))
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top