1
0
mirror of https://github.com/golang/go synced 2024-11-05 22:36:10 -07:00
go/cmd/stringer
Rob Pike 9207f67279 go.tools/cmd/stringer: add tests
Refactor a little to make testing easier.
Add golden tests and a check fo splitIntoRuns, which is the subtlest piece.
Still to come: execution tests.

Also fix a few issues in the generated code.

LGTM=gri
R=gri
CC=golang-codereviews, josharian
https://golang.org/cl/134450044
2014-09-04 14:16:59 -07:00
..
golden_test.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00
stringer.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00
util_test.go go.tools/cmd/stringer: add tests 2014-09-04 14:16:59 -07:00