]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: check that the argument of -var is valid
authorAndrea Nodari <andrea.nodari91@gmail.com>
Thu, 21 Jun 2018 17:01:01 +0000 (18:01 +0100)
committerIan Lance Taylor <iant@golang.org>
Mon, 10 Dec 2018 23:08:15 +0000 (23:08 +0000)
commit963c9fdf9735bc464521cde3d46b596ce0d74eba
tree803892334b7c2f9f5daa6e4c9289c63609eb2e6c
parent1ccb66d1ef031ad70345d2ef1983a5814f405295
cmd/cover: check that the argument of -var is valid

At the moment, the cover tool does not check that the argument of -var
is a valid identifier. Hence, it could generate a file that fails to
compile afterwards.

Updates #25280

Change-Id: I6eb1872736377680900a18a4a28ba002ab5ea8ca
Reviewed-on: https://go-review.googlesource.com/c/120316
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cover/cover.go
src/cmd/cover/cover_test.go