Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 537 for logf (0.23 sec)

  1. src/compress/flate/deflate_test.go

    func (b *syncBuffer) Close() error {
    	b.closed = true
    	b.signal()
    	return nil
    }
    
    func testSync(t *testing.T, level int, input []byte, name string) {
    	if len(input) == 0 {
    		return
    	}
    
    	t.Logf("--testSync %d, %d, %s", level, len(input), name)
    	buf := newSyncBuffer()
    	buf1 := new(bytes.Buffer)
    	buf.WriteMode()
    	w, err := NewWriter(io.MultiWriter(buf, buf1), level)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testerrors/ptr_test.go

    	}
    
    	buf, err := runcmd(cgocheck)
    	if pt.fail {
    		if err == nil {
    			t.Logf("%s", buf)
    			t.Fatalf("did not fail as expected")
    		} else if !bytes.Contains(buf, []byte("Go pointer")) {
    			t.Logf("%s", buf)
    			t.Fatalf("did not print expected error (failed with %v)", err)
    		}
    	} else {
    		if err != nil {
    			t.Logf("%s", buf)
    			t.Fatalf("failed unexpectedly: %v", err)
    		}
    
    		if !pt.expensive {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  3. pkg/api/testing/serialization_test.go

    		),
    	)
    
    	t.Logf("rs.v1.apps -> rc._internal")
    	if err := runtime.DecodeInto(decoder, data, rc); err != nil {
    		t.Fatalf("unexpected decoding error: %v", err)
    	}
    
    	t.Logf("rc._internal -> rc.v1")
    	data, err = runtime.Encode(defaultCodec, rc)
    	if err != nil {
    		t.Fatalf("unexpected encoding error: %v", err)
    	}
    
    	t.Logf("rc.v1 -> rs._internal.apps")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  4. src/os/os_unix_test.go

    	// Then try all the auxiliary groups.
    	groups, err := Getgroups()
    	if err != nil {
    		t.Fatalf("getgroups: %s", err)
    	}
    	t.Log("groups: ", groups)
    	for _, g := range groups {
    		if err = Lchown(linkname, -1, g); err != nil {
    			if testenv.SyscallIsNotSupported(err) {
    				t.Logf("lchown %s -1 %d: %s (error ignored)", f.Name(), g, err)
    				// Since the Lchown call failed, the file should be unmodified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. src/regexp/exec_test.go

    			if flag == "" {
    				continue Reading
    			}
    		case ':':
    			var ok bool
    			if _, flag, ok = strings.Cut(flag[1:], ":"); !ok {
    				t.Logf("skip: %s", line)
    				continue Reading
    			}
    		case 'C', 'N', 'T', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
    			t.Logf("skip: %s", line)
    			continue Reading
    		}
    
    		// Can check field count now that we've handled the myriad comment formats.
    		if len(field) < 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumebinding/volume_binding_test.go

    				t.Errorf("state got after prefilter does not match (-want,+got):\n%s", diff)
    			}
    
    			t.Logf("Verify: call Filter and check status")
    			for i, nodeInfo := range nodeInfos {
    				gotStatus := p.Filter(ctx, state, item.pod, nodeInfo)
    				assert.Equal(t, item.wantFilterStatus[i], gotStatus)
    			}
    
    			t.Logf("Verify: call PreScore and check status")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 32K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/main.go

    	}
    
    	if ctxt.Debugvlog != 0 {
    		onOff := func(b bool) string {
    			if b {
    				return "on"
    			}
    			return "off"
    		}
    		ctxt.Logf("build mode: %s, symbol table: %s, DWARF: %s\n", ctxt.BuildMode, onOff(!*FlagS), onOff(dwarfEnabled(ctxt)))
    		ctxt.Logf("HEADER = -H%d -T0x%x -R0x%x\n", ctxt.HeadType, uint64(*FlagTextAddr), uint32(*FlagRound))
    	}
    
    	zerofp := goobj.FingerprintType{}
    	switch ctxt.BuildMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. pkg/controller/nodeipam/ipam/range_allocator_test.go

    		if err != nil {
    			t.Logf("%v: failed to create CIDRRangeAllocator with error %v", tc.description, err)
    		}
    		rangeAllocator, ok := allocator.(*rangeAllocator)
    		if !ok {
    			t.Logf("%v: found non-default implementation of CIDRAllocator, skipping white-box test...", tc.description)
    			return
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  9. src/cmd/vet/testdata/print/print.go

    	Printf("%p %x", recursiveSliceV, recursiveSliceV)
    	Printf("%p %x", recursiveMapV, recursiveMapV)
    	// Special handling for Log.
    	math.Log(3) // OK
    	var t *testing.T
    	t.Log("%d", 3) // ERROR "Log call has possible Printf formatting directive %d"
    	t.Logf("%d", 3)
    	t.Logf("%d", "hi") // ERROR "Logf format %d has arg \x22hi\x22 of wrong type string"
    
    	Errorf(1, "%d", 3)    // OK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  10. src/cmd/vet/vet_test.go

    	out, _ := cmd.CombinedOutput()
    	return string(out) == "true\n"
    }
    
    func errchk(c *exec.Cmd, files []string, t *testing.T) {
    	output, err := c.CombinedOutput()
    	if _, ok := err.(*exec.ExitError); !ok {
    		t.Logf("vet output:\n%s", output)
    		t.Fatal(err)
    	}
    	fullshort := make([]string, 0, len(files)*2)
    	for _, f := range files {
    		fullshort = append(fullshort, f, filepath.Base(f))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top