gofmt: add test framework in Go
- replaced existing testdata/test.sh with new gofmt_test
- added initial test case for rewrite tests
TODO: Need to add more tests.
Exec'ing gofmt is probably not the right approach except
for testing command-line processing. If you refactor main
to provide a suitable function and then call that function
from the test loop, the test will be less code and run much
faster.
PTAL
- gri
On Wed, Apr 13, 2011 at 6:34 AM, <rsc@golang.org> wrote:
> Exec'ing gofmt is probably not the right approach except
> for testing command-line processing. If you refactor main
> to provide a suitable function and then call that function
> from the test loop, the test will be less code and run much
> faster.
>
>
>
> http://codereview.appspot.com/4368063/
>
Issue 4368063: code review 4368063: gofmt: added test framework in Go
(Closed)
Created 14 years ago by gri
Modified 14 years ago
Reviewers:
Base URL:
Comments: 0