aboutsummaryrefslogtreecommitdiffstats
path: root/prog/alloc_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-31 12:16:54 +0200
commitf5d67fbd9c633bd2e0e815ada0a8dea352ea42d4 (patch)
treef38c9fb5ab5c6f2b0b003ee20fe13bed7ea41900 /prog/alloc_test.go
parentb8bd991ee2f77d225913d41c57b9a420b4559900 (diff)
.gometalinter.json: enable gofmt
The part that we want from gofmt is simplify (-s). Fix all code that needs fixing. Update #538
Diffstat (limited to 'prog/alloc_test.go')
-rw-r--r--prog/alloc_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/alloc_test.go b/prog/alloc_test.go
index 261b18d0c..c83063747 100644
--- a/prog/alloc_test.go
+++ b/prog/alloc_test.go
@@ -15,7 +15,7 @@ func TestMemAlloc(t *testing.T) {
size int // if positive do noteAlloc, otherwise -- alloc
}
tests := [][]op{
- []op{
+ {
// Just sequential allocation.
{0, -1},
{64, -64},
@@ -23,7 +23,7 @@ func TestMemAlloc(t *testing.T) {
{256, -16},
{320, -8},
},
- []op{
+ {
// First reserve some memory and then allocate.
{0, 1},
{64, 63},