- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for Textfmt (0.11 sec)
-
src/cmd/covdata/tool_test.go
dargs := []string{"-pkg=" + mainPkgPath, "-i=" + s.outdirs[0] + "," + s.outdirs[1], "-o", outf} lines := runToolOp(t, s, "textfmt", dargs) // No output expected. if len(lines) != 0 { dumplines(lines) t.Errorf("unexpected output from go tool covdata textfmt") } // Open and read the first few bits of the file. payload, err := os.ReadFile(outf) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
src/cmd/covdata/covdata.go
} func usage(msg string) { if len(msg) > 0 { fmt.Fprintf(os.Stderr, "error: %s\n", msg) } fmt.Fprintf(os.Stderr, "usage: go tool covdata [command]\n") fmt.Fprintf(os.Stderr, ` Commands are: textfmt convert coverage data to textual format percent output total percentage of statements covered pkglist output list of package import paths func output coverage profile information for each function
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
} } const ( // nolint: revive, stylecheck FmtOpenMetrics_0_0_1 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_0_0_1 + `; charset=utf-8` // nolint: revive, stylecheck FmtOpenMetrics_1_0_0 = expfmt.OpenMetricsType + `; version=` + expfmt.OpenMetricsVersion_1_0_0 + `; charset=utf-8` FmtText = `text/plain; version=` + expfmt.TextVersion + `; charset=utf-8` )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (1) -
cmd/metrics.go
return } } contentType := expfmt.Negotiate(r.Header) w.Header().Set("Content-Type", string(contentType)) enc := expfmt.NewEncoder(w, contentType) for _, mf := range mfs { if err := enc.Encode(mf); err != nil { // client may disconnect for any reasons // we do not have to log this. return } } if closer, ok := enc.(expfmt.Closer); ok { closer.Close() } })
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 16.6K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
}, { name: "plaintext accept header", contentType: "text/plain; version=0.0.4; charset=utf-8", expected: expfmt.NewFormat(expfmt.TypeTextPlain), }, { name: "empty accept header", contentType: "", expected: expfmt.NewFormat(expfmt.TypeTextPlain), }, } for _, tt := range cases { t.Run(tt.name, func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
cmd/metrics-v2.go
return } contentType := expfmt.Negotiate(r.Header) w.Header().Set("Content-Type", string(contentType)) enc := expfmt.NewEncoder(w, contentType) for _, mf := range mfs { if err := enc.Encode(mf); err != nil { // client may disconnect for any reasons // we do not have to log this. return } } if closer, ok := enc.(expfmt.Closer); ok { closer.Close() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:54 UTC 2024 - 131.9K bytes - Viewed (0)