- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ResetTimer (0.27 sec)
-
src/archive/zip/writer_test.go
} b.ReportAllocs() // Run once and then reset the timer. // This effectively discards the very large initial flate setup cost, // as well as the initialization of bigBuf. runOnce(&bytes.Buffer{}) b.ResetTimer() b.RunParallel(func(pb *testing.PB) { var buf bytes.Buffer for pb.Next() { runOnce(&buf) } }) } func writeTestsToFS(tests []WriteTest) fs.FS { fsys := fstest.MapFS{}
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0) -
src/bytes/bytes_test.go
name string input []byte }{ {"Valid", []byte("typical")}, {"InvalidASCII", []byte("foo\xffbar")}, {"InvalidNonASCII", []byte("日本語\xff日本語")}, } replacement := []byte("\uFFFD") b.ResetTimer() for _, test := range tests { b.Run(test.name, func(b *testing.B) { for i := 0; i < b.N; i++ { ToValidUTF8(test.input, replacement) } }) } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
api/go1.txt
pkg testing, method (*B) Fatalf(string, ...interface{}) pkg testing, method (*B) Log(...interface{}) pkg testing, method (*B) Logf(string, ...interface{}) pkg testing, method (*B) ResetTimer() pkg testing, method (*B) SetBytes(int64) pkg testing, method (*B) StartTimer() pkg testing, method (*B) StopTimer() pkg testing, method (*T) Error(...interface{})
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)