Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,275 for logf (0.06 sec)

  1. src/cmd/compile/internal/types/sym_test.go

    	}
    	if reflect.DeepEqual(data, want) {
    		t.Fatal("data must be shuffled")
    	}
    	sort.Slice(data, func(i, j int) bool { return data[i].Less(data[j]) })
    	if !reflect.DeepEqual(data, want) {
    		t.Logf("want: %#v", want)
    		t.Logf("data: %#v", data)
    		t.Errorf("sorting failed")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 02 20:30:31 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/go/internal/work/shell_test.go

    			// We haven't checked that the shell would actually reject this input too,
    			// but if splitPkgConfigOutput rejected it it's probably too dangerous to
    			// run in the script.
    			t.Logf("%#q: %v", b, err)
    			return
    		}
    		t.Logf("splitPkgConfigOutput(%#q) = %#q", b, args)
    		if len(args) == 0 {
    			t.Skipf("skipping %#q: contains no arguments", b)
    		}
    
    		var buf strings.Builder
    		for _, arg := range args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. pkg/credentialprovider/secrets/secrets_test.go

    			if found != testcase.found {
    				t.Logf("actual lookup status: %v", found)
    				t.Logf("expected lookup status: %v", testcase.found)
    				t.Errorf("unexpected lookup for image: %s", testcase.image)
    			}
    
    			if !reflect.DeepEqual(authConfigs, testcase.authConfigs) {
    				t.Logf("actual auth configs: %#v", authConfigs)
    				t.Logf("expected auth configs: %#v", testcase.authConfigs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 23 18:11:10 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  5. src/net/interface_unix_test.go

    		}
    		ift2, err := Interfaces()
    		if err != nil {
    			ti.teardown()
    			t.Fatal(err)
    		}
    		if len(ift2) <= len(ift1) {
    			for _, ifi := range ift1 {
    				t.Logf("before: %v", ifi)
    			}
    			for _, ifi := range ift2 {
    				t.Logf("after: %v", ifi)
    			}
    			ti.teardown()
    			t.Fatalf("got %v; want gt %v", len(ift2), len(ift1))
    		}
    		for _, ifi := range ift2 {
    			if ti.name != ifi.Name {
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 23:51:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/net/http/transport_dial_test.go

    	}
    	rt.reqBody.Close()
    	io.ReadAll(rt.res.Body)
    	rt.res.Body.Close()
    	rt.t.Logf("RoundTrip %v: closed request body", rt.roundTripID)
    }
    
    // wantDial waits for the Transport to start a Dial.
    func (dt *transportDialTester) wantDial() *transportDialTesterConn {
    	c := <-dt.dials
    	c.connID = dt.dialCount
    	dt.dialCount++
    	dt.t.Logf("Dial %v: started", c.connID)
    	return c
    }
    
    // finish completes a Dial.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/mergelocals_test.go

    		mls, err := liveness.MakeMergeLocalsState(testcase.partition, testcase.vars)
    		t.Logf("tc %d err is %v\n", k, err)
    		if testcase.experr && err == nil {
    			t.Fatalf("tc:%d missing error mls %v", k, mls)
    		} else if !testcase.experr && err != nil {
    			t.Fatalf("tc:%d unexpected error mls %v", k, err)
    		}
    		if mls != nil {
    			t.Logf("tc %d: mls: %v\n", k, mls.String())
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:43:53 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/pcln.go

    		// add terminating varint-encoded 0, which is just 0
    		dst = append(dst, 0)
    	}
    
    	if dbg {
    		ctxt.Logf("wrote %d bytes to %p\n", len(dst), dst)
    		for _, p := range dst {
    			ctxt.Logf(" %02x", p)
    		}
    		ctxt.Logf("\n")
    	}
    
    	sym.Size = int64(len(dst))
    	sym.P = dst
    	return sym
    }
    
    // pctofileline computes either the file number (arg == 0)
    // or the line number (arg == 1) to use at p.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/runtime/debug/stack_test.go

    	// 	_testmain.go:71 +0x170
    	data, err := os.ReadFile(crashOutput)
    	if err != nil {
    		t.Fatalf("child process failed to write crash report: %v", err)
    	}
    	crash := string(data)
    	t.Logf("crash = <<%s>>", crash)
    	t.Logf("stderr = <<%s>>", stderr)
    
    	// Check that the crash file and the stderr both contain the panic and stack trace.
    	for _, want := range []string{
    		"panic: oops",
    		"goroutine 1",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/net/write_unix_test.go

    				cagain++
    				if cagain > 20 {
    					t.Error("looping on EAGAIN")
    					return nil
    				}
    				if err = ss.conn.fd.pfd.WaitWrite(); err != nil {
    					t.Logf("client WaitWrite: %v", err)
    					return nil
    				}
    			default:
    				// We expect to eventually get an error.
    				t.Logf("client WriteOnce: %v", err)
    				return nil
    			}
    		}
    	}
    	withTCPConnPair(t, client, server)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top