Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,019 for vfprintf (0.16 sec)

  1. src/cmd/go/internal/test/cover.go

    	defer coverMerge.Unlock()
    
    	expect := fmt.Sprintf("mode: %s\n", cfg.BuildCoverMode)
    	buf := make([]byte, len(expect))
    	r, err := os.Open(file)
    	if err != nil {
    		// Test did not create profile, which is OK.
    		return
    	}
    	defer r.Close()
    
    	n, err := io.ReadFull(r, buf)
    	if n == 0 {
    		return
    	}
    	if err != nil || string(buf) != expect {
    		fmt.Fprintf(ew, "error: test wrote malformed coverage profile %s.\n", file)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/mktests.go

    		skip, err := ctx.register(name)
    		if err != nil {
    			return err
    		}
    		if skip {
    			continue
    		}
    
    		fmt.Fprintf(os.Stderr, "generating %s... ", name)
    
    		// Get the test path.
    		testPath := filepath.Join(genroot, fmt.Sprintf("%s.test", name))
    
    		// Run generator.
    		cmd := exec.Command("go", "run", path, testPath)
    		if out, err := cmd.CombinedOutput(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. internal/logger/target/testlogger/testlogger.go

    		case errorMessage:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stderr, format+"\n", args...)
    			}
    		case fatalMessage:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stderr, format+"\n", args...)
    			}
    			defer os.Exit(1)
    		default:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stdout, format+"\n", args...)
    			}
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue15528.go

    )
    
    func main() {
    	var fail bool
    	for i, test := range efaces {
    		s := fmt.Sprintf("%[1]T %[1]v", test.x)
    		if s != test.s {
    			fmt.Printf("eface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    	for i, test := range ifaces {
    		s := fmt.Sprintf("%[1]T %#[1]v %[1]s", test.x)
    		if s != test.s {
    			fmt.Printf("iface(%d)=%q want %q\n", i, s, test.s)
    			fail = true
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 12 14:31:26 UTC 2016
    - 3.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/addons/proxy/proxy.go

    		return err
    	}
    
    	fmt.Fprintln(out, "---")
    	fmt.Fprintf(out, "%s", saBytes)
    	fmt.Fprintln(out, "---")
    	fmt.Fprintf(out, "%s", crbBytes)
    	fmt.Fprintln(out, "---")
    	fmt.Fprintf(out, "%s", roleBytes)
    	fmt.Fprintln(out, "---")
    	fmt.Fprintf(out, "%s", roleBindingBytes)
    	fmt.Fprint(out, "---")
    	fmt.Fprintf(out, "%s", cmByte)
    	fmt.Fprint(out, "---")
    	fmt.Fprintf(out, "%s", dsByte)
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 13:23:44 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. src/go/types/errors.go

    func (err *error_) msg() string {
    	if err.empty() {
    		return "no error"
    	}
    
    	var buf strings.Builder
    	for i := range err.desc {
    		p := &err.desc[i]
    		if i > 0 {
    			fmt.Fprint(&buf, "\n\t")
    			if p.posn.Pos().IsValid() {
    				fmt.Fprintf(&buf, "%s: ", err.check.fset.Position(p.posn.Pos()))
    			}
    		}
    		buf.WriteString(p.msg)
    	}
    	return buf.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/benchmark/bench.go

    		totTime += dur
    		fmt.Fprintf(w, "%s 1 %d ns/op", makeBenchString(curMark.name+gcString), dur.Nanoseconds())
    		fmt.Fprintf(w, "\t%d B/op", curMark.endM.TotalAlloc-curMark.startM.TotalAlloc)
    		fmt.Fprintf(w, "\t%d allocs/op", curMark.endM.Mallocs-curMark.startM.Mallocs)
    		if m.gc == GC {
    			fmt.Fprintf(w, "\t%d live-B", curMark.gcM.HeapAlloc)
    		} else {
    			fmt.Fprintf(w, "\t%d heap-B", curMark.endM.HeapAlloc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/testdata/i22558.go

    type big struct {
    	pile [768]int8
    }
    
    type thing struct {
    	name  string
    	next  *thing
    	self  *thing
    	stuff []big
    }
    
    func test(t *thing, u *thing) {
    	if t.next != nil {
    		return
    	}
    	fmt.Fprintf(os.Stderr, "%s\n", t.name)
    	u.self = u
    	t.self = t
    	t.next = u
    	for _, p := range t.stuff {
    		if isFoo(t, p) {
    			return
    		}
    	}
    }
    
    //go:noinline
    func isFoo(t *thing, b big) bool {
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 23 18:05:07 UTC 2018
    - 773 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go

    		fmt.Fprintf(w, "for i, test := range %v_tests {\n", typ)
    		fmt.Fprintf(w, "	for j, x := range %v_vals {\n", typ)
    		fmt.Fprintf(w, "		want := test.exp.l\n")
    		fmt.Fprintf(w, "		if j == test.idx {\nwant = test.exp.e\n}")
    		fmt.Fprintf(w, "		else if j > test.idx {\nwant = test.exp.r\n}\n")
    		fmt.Fprintf(w, "		if test.fn(x) != want {\n")
    		fmt.Fprintf(w, "			fn := runtime.FuncForPC(reflect.ValueOf(test.fn).Pointer()).Name()\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  10. test/typeparam/issue47740.go

    // type Lit[Ty any] Ty
    //
    // func (lit Lit[Ty]) Eval() Ty       { return Ty(lit) }
    // func (lit Lit[Ty]) String() string { return fmt.Sprintf("(lit %v)", Ty(lit)) }
    
    type Eq[Ty any] struct {
    	a Exp[Ty]
    	b Exp[Ty]
    }
    
    func (e Eq[Ty]) String() string {
    	return fmt.Sprintf("(eq %v %v)", e.a, e.b)
    }
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1008 bytes
    - Viewed (0)
Back to top