From 4ec7e76a741ae617425b6c6674eee99085eb26da Mon Sep 17 00:00:00 2001 From: Jeremy Schlatter Date: Fri, 27 Mar 2015 01:59:31 +0000 Subject: [PATCH] cmd/go: small code reorganization covermode is not passed to 6.out, so it should not be grouped with the flags that are. Move it to the "local" section. Change-Id: Id487898962e7ab7adf98b0854c2f1802116bec11 Reviewed-on: https://go-review.googlesource.com/8132 Reviewed-by: Minux Ma --- src/cmd/go/testflag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/testflag.go b/src/cmd/go/testflag.go index 19a5dddc91..5652e5466c 100644 --- a/src/cmd/go/testflag.go +++ b/src/cmd/go/testflag.go @@ -30,6 +30,7 @@ var testFlagDefn = []*testFlagSpec{ // local. {name: "c", boolVar: &testC}, {name: "cover", boolVar: &testCover}, + {name: "covermode"}, {name: "coverpkg"}, {name: "o"}, @@ -53,7 +54,6 @@ var testFlagDefn = []*testFlagSpec{ {name: "bench", passToTest: true}, {name: "benchmem", boolVar: new(bool), passToTest: true}, {name: "benchtime", passToTest: true}, - {name: "covermode"}, {name: "coverprofile", passToTest: true}, {name: "cpu", passToTest: true}, {name: "cpuprofile", passToTest: true},