mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
testing: shorten some tests.
These are the top runners. More to come. Also print two digits of timing info under -test.v. R=rsc CC=golang-dev https://golang.org/cl/4317044
This commit is contained in:
parent
4cb660aad8
commit
f0cf7d296c
11 changed files with 77 additions and 31 deletions
|
|
@ -201,7 +201,10 @@ func TestIndexByte(t *testing.T) {
|
|||
|
||||
// test a larger buffer with different sizes and alignments
|
||||
func TestIndexByteBig(t *testing.T) {
|
||||
const n = 1024
|
||||
var n = 1024
|
||||
if testing.Short() {
|
||||
n = 128
|
||||
}
|
||||
b := make([]byte, n)
|
||||
for i := 0; i < n; i++ {
|
||||
// different start alignments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue