Search Gear #12 – Format Files / Code Review Comments!

So before test format the files in that directory with:
go fmt

then
go test -v

go test -cover
go test -coverprofile=coverage.out
go tool cover -func=coverage.out

go tool cover -html=coverage.out

NICE!

AND I HAVE 100% Coverage and all tests pass!

Good read: http://jeffknupp.com/blog/2014/08/19/go-is-fun-familiar-and-fast/

Now thoughts for the next bit of the application – or at least requirements

https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
https://github.com/dafang/anaconda/blob/master/timeline.go

https://code.google.com/p/go-wiki/wiki/CodeReviewComments

go get code.google.com/p/go.tools/cmd/goimports
go get code.google.com/p/go.tools/cmd/gofmt

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s