- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 4,133 for sprint (0.09 sec)
-
src/fmt/fmt_test.go
var mallocTest = []struct { count int desc string fn func() }{ {0, `Sprintf("")`, func() { _ = Sprintf("") }}, {1, `Sprintf("xxx")`, func() { _ = Sprintf("xxx") }}, {0, `Sprintf("%x")`, func() { _ = Sprintf("%x", 7) }}, {1, `Sprintf("%x")`, func() { _ = Sprintf("%x", 1<<16) }}, {3, `Sprintf("%80000s")`, func() { _ = Sprintf("%80000s", "hello") }}, // large buffer (>64KB)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/runtime/slice_test.go
} } } func BenchmarkAppendGrowString(b *testing.B) { var s string for i := 0; i < b.N; i++ { var x []string for j := 0; j < 1<<20; j++ { x = append(x, s) } } } func BenchmarkAppendSlice(b *testing.B) { for _, length := range []int{1, 4, 7, 8, 15, 16, 32} { b.Run(fmt.Sprint(length, "Bytes"), func(b *testing.B) { x := make([]byte, 0, N) y := make([]byte, length)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 17 09:45:44 UTC 2020 - 10.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 708 bytes - Viewed (0) -
pkg/test/framework/components/registryredirector/kube.go
return nil } func (c *kubeComponent) Address() string { return c.address } func (c *kubeComponent) SetupTagMap(tagMap map[string]string) error { client := &http.Client{ Timeout: 10 * time.Second, } body, err := json.Marshal(tagMap) if err != nil { return err } err = retry.UntilSuccess(func() error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 00:53:57 UTC 2024 - 4.6K bytes - Viewed (0) -
src/expvar/expvar_test.go
} // colors.String() should be '{"red":3, "blue":4}', // though the order of red and blue could vary. s := colors.String() var j any err := json.Unmarshal([]byte(s), &j) if err != nil { t.Errorf("colors.String() isn't valid JSON: %v", err) } m, ok := j.(map[string]any) if !ok { t.Error("colors.String() didn't produce a map.") } red := m["red"]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:46:19 UTC 2024 - 13.4K bytes - Viewed (0) -
src/go/doc/comment/wrap_test.go
sN := utf8.RuneCountInString(s) var words []string for i := 0; i < 100; i++ { n := 1 + r.Intn(sN-1) if n >= 12 { n++ // extra byte for β } if n >= 11 { n++ // extra byte for α } words = append(words, s[:n]) } for n := 1; n <= len(words) && !t.Failed(); n++ { t.Run(fmt.Sprint("n=", n), func(t *testing.T) { words := words[:n] t.Logf("words: %v", words)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:45 UTC 2022 - 3.7K bytes - Viewed (0) -
pkg/controller/daemon/util/daemonset_util_test.go
badGeneration := pointer.Int64(12350) hash := "55555" labels := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(*templateGeneration), extensions.DefaultDaemonSetUniqueLabelKey: hash} labelsNoHash := map[string]string{extensions.DaemonSetTemplateGenerationKey: fmt.Sprint(*templateGeneration)} tests := []struct { test string templateGeneration *int64 pod *v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 14.5K bytes - Viewed (0) -
src/log/log.go
// Print calls Output to print to the standard logger. // Arguments are handled in the manner of [fmt.Print]. func Print(v ...any) { std.output(0, 2, func(b []byte) []byte { return fmt.Append(b, v...) }) } // Printf calls Output to print to the standard logger. // Arguments are handled in the manner of [fmt.Printf]. func Printf(format string, v ...any) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 22:56:07 UTC 2023 - 12.9K bytes - Viewed (0) -
test/fixedbugs/issue11053.dir/p_test.go
s.Add(out) // not inlined. return out } var s T func main() { println("Starting") fmt.Sprint(new(int32)) resp := F(s).(*P) println("Before, *resp.V=", *resp.V) // Trashes *resp.V in process of printing. println("After, *resp.V=", *resp.V) if got, want := *resp.V, int32(42); got != want { fmt.Printf("FAIL, got %v, want %v", got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 828 bytes - Viewed (0) -
tests/create_test.go
} if _, ok := records[0]["@id"]; ok && fmt.Sprint(res2["id"]) != fmt.Sprint(records[0]["@id"]) { t.Errorf("failed to create data from map with table, @id != id, got %v, expect %v", res2["id"], records[0]["@id"]) } if _, ok := records[1]["id"]; ok && fmt.Sprint(res3["id"]) != fmt.Sprint(records[1]["@id"]) { t.Errorf("failed to create data from map with table, @id != id") }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 26.4K bytes - Viewed (0)