Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 394 for qprint (0.2 sec)

  1. src/mime/quotedprintable/reader_test.go

    	}
    }
    
    var useQprint = flag.Bool("qprint", false, "Compare against the 'qprint' program.")
    
    var badSoftRx = regexp.MustCompile(`=([^\r\n]+?\n)|([^\r\n]+$)|(\r$)|(\r[^\n]+\n)|( \r\n)`)
    
    func TestExhaustive(t *testing.T) {
    	if *useQprint {
    		_, err := exec.LookPath("qprint")
    		if err != nil {
    			t.Fatalf("Error looking for qprint: %v", err)
    		}
    	}
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/fmt/print.go

    // It returns the number of bytes written and any write error encountered.
    func Print(a ...any) (n int, err error) {
    	return Fprint(os.Stdout, a...)
    }
    
    // Sprint formats using the default formats for its operands and returns the resulting string.
    // Spaces are added between operands when neither is a string.
    func Sprint(a ...any) string {
    	p := newPrinter()
    	p.doPrint(a)
    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. internal/logger/console.go

    		if len(line) == 0 {
    			// No more text to print, just quit.
    			break
    		}
    
    		for {
    			// Save the attributes of the current cursor helps
    			// us save the text color of the passed error message
    			ansiSaveAttributes()
    			// Print banner with or without the log tag
    			if !tagPrinted {
    				fmt.Fprint(Output, logBanner)
    				tagPrinted = true
    			} else {
    				fmt.Fprint(Output, emptyBanner)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/internal/fmtsort/sort_test.go

    		m[chans[i]] = fmt.Sprint(i)
    	}
    	return m
    }
    
    type toy struct {
    	A int // Exported.
    	b int // Unexported.
    }
    
    func TestOrder(t *testing.T) {
    	for _, test := range sortTests {
    		got := sprint(test.data)
    		if got != test.print {
    			t.Errorf("%s: got %q, want %q", reflect.TypeOf(test.data), got, test.print)
    		}
    	}
    }
    
    func TestInterface(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. src/go/printer/printer_test.go

    	}
    
    	cfg := &Config{
    		Mode:     SourcePos, // emit line comments
    		Tabwidth: 8,
    	}
    	var buf bytes.Buffer
    	if err := cfg.Fprint(&buf, fset, f); err == nil {
    		t.Errorf("Fprint did not error for source file path containing newline")
    	}
    	if buf.Len() != 0 {
    		t.Errorf("unexpected Fprint output:\n%s", buf.Bytes())
    	}
    }
    
    // TestEmptyDecl tests that empty decls for const, var, import are printed with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/util.go

    			fmt.Fprintf(w, "$%d", a.Offset)
    		} else {
    			fmt.Fprintf(w, "$%d-%d", a.Offset, a.Val.(int32))
    		}
    
    	case TYPE_FCONST:
    		str := fmt.Sprintf("%.17g", a.Val.(float64))
    		// Make sure 1 prints as 1.0
    		if !strings.ContainsAny(str, ".e") {
    			str += ".0"
    		}
    		fmt.Fprintf(w, "$(%s)", str)
    
    	case TYPE_SCONST:
    		fmt.Fprintf(w, "$%q", a.Val.(string))
    
    	case TYPE_ADDR:
    		io.WriteString(w, "$")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    				// Short instruction, print loc on the same line.
    				fmt.Fprintf(w, "%10s %10s %10x: %-40s;%s\n",
    					valueOrDot(n.flatValue(), rpt),
    					valueOrDot(n.cumValue(), rpt),
    					n.address, n.instruction,
    					locStr,
    				)
    			default:
    				// Long instruction, print loc on a separate line.
    				fmt.Fprintf(w, "%74s;%s\n", "", locStr)
    				fmt.Fprintf(w, "%10s %10s %10x: %s\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  8. src/runtime/mksizeclasses.go

    	fmt.Fprintf(w, "minHeapAlign = %d\n", minHeapAlign)
    	fmt.Fprintf(w, "_MaxSmallSize = %d\n", maxSmallSize)
    	fmt.Fprintf(w, "smallSizeDiv = %d\n", smallSizeDiv)
    	fmt.Fprintf(w, "smallSizeMax = %d\n", smallSizeMax)
    	fmt.Fprintf(w, "largeSizeDiv = %d\n", largeSizeDiv)
    	fmt.Fprintf(w, "_NumSizeClasses = %d\n", len(classes))
    	fmt.Fprintf(w, "_PageShift = %d\n", pageShift)
    	fmt.Fprintf(w, "maxObjsPerSpan = %d\n", maxObjsPerSpan(classes))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. src/cmd/trace/main.go

    	log.Print("Preparing trace for viewer...")
    	parsed, err := parseTraceInteractive(tracef, traceSize)
    	if err != nil {
    		logAndDie(err)
    	}
    	// N.B. tracef not needed after this point.
    	// We might double-close, but that's fine; we ignore the error.
    	tracef.Close()
    
    	// Print a nice message for a partial trace.
    	if parsed.err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/test/test.go

    		}
    		addTestVet(b, p, run, nil)
    		print := &work.Action{
    			Mode:       "test print",
    			Actor:      work.ActorFunc(builderPrintTest),
    			Deps:       []*work.Action{run},
    			Package:    p,
    			IgnoreFail: true, // print even if test failed
    		}
    		return build, run, print, nil
    	}
    
    	// Build Package structs describing:
    	//	pmain - pkg.test binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
Back to top